Skip to main content

Scanner in Java

Learn Scanner in Java (Java Basics, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

1. Introduction Scanner reads and parses input from the keyboard, files or strings: nextInt , nextDouble , next and nextLine .

More lessons in Java Basics