0

Integer.pareseInt()

What is the difference between System.out.print(Integer.parseInt(digits.substring(1,2) + digits.substring(0, 1))); and System.out.print(digits.substring(1,2) + digits.substring(0, 1));

18th Dec 2017, 3:28 PM
PurePureMilk
1 Respuesta
+ 1
first one is an addition, it adds two numbers. second one is a concatenation of two strings.
18th Dec 2017, 3:32 PM
Jeremy
Jeremy - avatar