How to give inputs | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to give inputs

For this code I want give a value then check the condition. So I used scanner to give value but it is not possible to convert a string to integer So plz help

17th Feb 2020, 1:47 PM
Valaboju Suryateja
Valaboju Suryateja - avatar
1 Answer
+ 1
Share your code for clarity. int x = Integer.parseInt(String);
17th Feb 2020, 2:21 PM
Avinesh
Avinesh - avatar