How to give inputs | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 1
Share your code for clarity. int x = Integer.parseInt(String);
17th Feb 2020, 2:21 PM
Avinesh
Avinesh - avatar