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.
On this page of the site you can watch the video online Java - Potential Problem with Scanner - Mixing Numeric and Text Input with a duration of hours minute second in good quality, which was uploaded by the user Peter Benum 28 May 2020, share the link with friends and acquaintances, this video has already been watched 238 times on youtube and it was liked by 3 viewers. Enjoy your viewing!