I am working on a program and I want to allow a user to enter multiple integers when prompted. I have tried to use a scanner but I found that it only stores the first intege
It's working with this code:
Scanner input = new Scanner(System.in); System.out.println("Enter Name : "); String name = input.next().toString(); System.out.println("Enter Phone # : "); String phone = input.next().toString();