Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

reading string after double in java

myInt = scan.nextInt();
myDouble = scan.nextDouble();
scan.nextLine(); // Skip the remainder of the double line
myString = scan.nextLine();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reading #string #double #java
ADD COMMENT
Topic
Name
4+8 =