public class StringtoInt {
public static void main(String[] args) {
String str=new String();
str="45678";
int n=Integer.parseInt(str+300);
System.out.print(n);
}
}
public static void main(String[] args) {
String str=new String();
str="45678";
int n=Integer.parseInt(str+300);
System.out.print(n);
}
}
No comments:
Post a Comment