Code example for Scanner

Methods: close, hasNext, nextLine