Input/Output Scanner Methods

PHOTO EMBED

Sun Jan 16 2022 05:58:03 GMT+0000 (Coordinated Universal Time)

Saved by @mikemcnik #java

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
content_copyCOPY

List of scanner methods.