文字列を int 値に解析しようとしています。しかし、NumberFormat Exception が発生します。以下のコードを書いています。
Logger.out("Myprof", "Contact "+strContact);
try{
i = Integer.parseInt(strContact.trim());
Logger.out("Myprof", "Contact8686866 "+i);
}
catch(Exception e)
{
Logger.out("Myprof", "exce "+e.toString());
}
今、私は以下のように渡しています:
i = Integer.parseInt("11223344");
i の値は 11223344 です。
ここでどこが間違っていますか?助けてください。