public static Integer valueOf( String s ) public static Integer valueOf( String s, int radix )
public class MainClass{ public static void main(String[] argv){
System.out.println(Integer.valueOf("asdf"));
}
}
Exception in thread "main" java.lang.NumberFormatException: For input string: "asdf"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:553)
at MainClass.main(MainClass.java:3)