how to direct use if else statemant use with scanner funtion

how to direct use if else statement use with scanner function in an easy way!

4/19/2019 6:34:10 AM

Rahul Deshwal

3 Answers

New Answer


Hello Rahul Deshwal ! 👍😉 You post this question twice, please delete one of it! 😊 https://www.sololearn.com/discuss/1316935/?ref=app


Rahul Deshwal add this to your code : Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(a); and read more here and look UP-NEXT👇 https://www.sololearn.com/learn/Java/2220/?ref=app