String s= "7"; int t =Integer.parseInt(s); t=t+1000; System.out.println(t);
15 Likes
1007
Integer.parseInt() converts "7" into an int value i.e. the decimal number 7. t+1000 adds the number 7 to 1000 giving 1007 as the output.
Integer.parseInt()
int
t+1000
Answered By
8 Likes