try
{ int a = Integer.parseInt(str); }
catch (NumberFormatException e)
{ e.printStackTrace(); }
String str = “123”;
try
{ int b = Integer.valueOf(str).intValue() }
catch (NumberFormatException e)
{ e.printStackTrace();}
try
{ int a = Integer.parseInt(str); }
catch (NumberFormatException e)
{ e.printStackTrace(); }
String str = “123”;
try
{ int b = Integer.valueOf(str).intValue() }
catch (NumberFormatException e)
{ e.printStackTrace();}