3 ответов
+ 7
http://javadevnotes.com/java-string-to-integer-examples EXAMPLE 1: String numberAsString = "1234"; int number = Integer.parseInt(numberAsString); System.out.println("The number is: " + number); EXAMPLE 2: String numberAsString = "1234"; int number = Integer.valueOf(numberAsString); System.out.println("The number is: " + number); EXAMPLE 3: String numberAsString = "1234"; int number = new Integer(numberAsString).intValue();
8th Nov 2017, 4:23 PM
AgentSmith
+ 9
Raphael mark Netkos as best answer
8th Nov 2017, 6:13 PM
David Akhihiero
David Akhihiero - avatar
0
wonder you🎏🎏🎏🎏🎏✨🎇🎟🎏🎋
29th Nov 2017, 4:57 AM
Ryan
Ryan - avatar