Java - Potential Problem with Scanner - Mixing Numeric and Text Input
Опубликовано: 15 Апрель 2026 на канале: Peter Benum
238
3
This quick video shows a potential problem that you might run into at some point. It occurs when you follow up a numeric entry with at call to the nextLine() method.
Two possible fixes are provided, along with a code example.