I have written this code as
String s="A";
int a=Integer.parseInt(s);
System.out.print(a);
at run time it give such massge which I am pasting here below;
Exception in thread "main" java.lang.NumberFormatException: For input string: "A"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
plz give me guidence what should I do for this problem. Thanks