+ 8
String to int
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();
+ 9
Raphael mark Netkos as best answer
0
wonder you🎏🎏🎏🎏🎏✨🎇🎟🎏🎋