Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

next line java does not take input

System.out.print("X: ");
scanner.nextLine(); //throw away the 
 not consumed by nextInt()
x = scanner.nextLine();
System.out.print("Y: ");
y = scanner.nextLine();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #line #java #input
ADD COMMENT
Topic
Name
9+8 =