Scanner sc new scanner new file mynumbers. Print please enter a number. And if the user enters i m the lord of the scanner you will see the following in the console.