Java - Potential Problem with Scanner - Mixing Numeric and Text Input
Опубликовано: 03 Апрель 2025 на канале: Peter Benum
209
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.