David Zimmerman <
[email protected]> wrote in message
Short.parseInt(String)
Inetger.parseInt(String)
I tried applied parseInt to grab and decode numeric program arguments
supplied from command line. Below is the implementation code.
import java.lang.Integer;
import java.lang.String;
public class Argu {
public static void main (String[] args) {
for (int i=0; i<2; i++)
System.out.println(parseInt(args
));
}
}
However, I got below compiler error as I compiled the code.
Argu.java:7: cannot resolve symbol
Symbol : method parseInt (java.lang.String)
location : class Argu
System.out.println(parseInt(args));
^
1 error
What's wrong with the code ? 
depending on what an 'int' was in that particular c compiler
see also
Byte.parseByte(String)
Long.parseLong(String)
Float.parseFloat(String)
Double.parseDouble(String)
and if you aren't thinking in base 10
Integer.parseInt(String val, int radix)