public class Main{
public static void main(String args[]){
try{
String as="abcd";
int x = Integer.parseInt(as);
System.out.println(x);
}catch(NumberFormatException e){
System.out.println("Cant Convert " + e);
}
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment