[java] How can I clear the Scanner buffer in Java?