1int result = Integer.parseInt("500");
2System.out.println(result) // prints 500 as int
1class scratch{
2 public static void main(String[] args) {
3 String str = "54";
4 int num = Integer.parseInt("54");
5 double doub = Double.parseDouble("54");
6 }
7}