Hi Ranchers,
Please consider the following code.
I am getting a runtime exception on line 1 ,2 and 3.
C:\exercises\JavaExercises>
java a
Exception in
thread "main" java.lang.NumberFormatException: For input
string: "0x1"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at java.lang.Short.parseShort(Short.java:120)
at java.lang.Short.<init>(Short.java:331)
at a.main(a.java:15)
Can somebody please explain?
What are all the legal arguments for all the Wrapper objects?
Are signs allowed?
Thanks in advance.
Uttara Rishi.
[ March 10, 2008: Message edited by: Uttara Rishi ]
[ March 10, 2008: Message edited by: Uttara Rishi ]