+ 10
How to convert string into int and vice-versa in java??
3 ответов
+ 17
String to int :
String a = "25";
int b = Integer.parseInt(a);
Int to String :
String c = Integer.toString(5);
or, String c = (5+""); // not a good approach though
+ 11
Thanks for your help my friends
0
String.valueOf or integer.toString? What is the difference?