Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java clear scanner

//There is no specific way you can clear the scanner buffer but you can try this:

Scanner scanner = new Scanner(System.in);

scanner.nextLine();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #clear #scanner
ADD COMMENT
Topic
Name
5+6 =