Code example for Scanner

Methods: hasNextLine, nextLine