reading string after int java code example
Example: how to read a string after an integer in java
myInt = scan. nextInt();
myDouble = scan. nextDouble();
scan. nextLine(); // Skip the remainder of the double line.
myString = scan. nextLine();
myInt = scan. nextInt();
myDouble = scan. nextDouble();
scan. nextLine(); // Skip the remainder of the double line.
myString = scan. nextLine();