void close() //must be called when finished reading from file boolean hasNext() //returns true If there are more characters to be read from the file String next() //skips whitespace until a nonwhitespace character is found and then reads characters until a whitespace character is encountered double nextDouble() //Scans the next token assuming it is a real number int nextInt() //Scans the next token assuming it is an integer String nextLine() //Reads and returns all characters on the current line. After reading , the scanner will be pointing to the next character of the next line of text
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter