reading string after double in java

Solutions on MaxInterview for reading string after double in java by the best coders in the world

showing results for - "reading string after double in java"
Kamil
20 Jul 2018
1myInt = scan.nextInt();
2myDouble = scan.nextDouble();
3scan.nextLine(); // Skip the remainder of the double line
4myString = scan.nextLine();