How to get more than one input from the user in Java😃👍 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to get more than one input from the user in Java😃👍

I need to take more input from the user please Tell me a replacement for scanner method(not too hard)

8th Apr 2020, 4:39 PM
Atoms~⚛
Atoms~⚛ - avatar
1 Answer
+ 3
import java. util.*; public class Test{ public static void main(String args[]){ Scanner ss = new Scanner(System. in); System. out. println("Enter Input."); int x = ss. nextInt(); System. out. println("Enter Input1."); int y = ss. nextInt(); And go...... On
8th Apr 2020, 4:47 PM
Ayush Kumar
Ayush Kumar - avatar