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 Odpowiedź
+ 1
Share your code for clarity. int x = Integer.parseInt(String);
17th Feb 2020, 2:21 PM
Avinesh
Avinesh - avatar