B4Coder
0%
LessonAbout 7 min

Chapter 2 · Lesson 5 of 5

05. Reading input with Scanner

Read what the user types with Scanner: nextLine for text, nextInt and nextDouble for numbers, and the nextInt-then-nextLine trap.

Opening the lesson…