Imagine the following scanario: I have a program which ask for an integer input, followed by a String input.
int age=0; String name; Scanner sc = new Scanne
You can also use:
name = sc.next();