- 1
How to convert "22" (String) to 22 (integer) in Java ?
I want get user Input in integer but it always get in string so I decided to convert it into a int but I don't know how to do that so I expect that somebody will help me from the Sololearn Help plzz
4 Antworten
+ 3
Abhay This is one of the reasons we recommend users to learn from other sources as well because the courses on sololearn helps you to get acquainted with the language but there are other important concepts that you need to learn by yourself.
One more possibility-
String str = "22";
int num = Integer.valueOf(str);
- 1
This is not available in Sololearn