Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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();
 
PREVIOUS NEXT
Tagged: #read #string #integer #java
ADD COMMENT
Topic
Name
8+2 =