Package cs2110

Class WordScanner

java.lang.Object
cs2110.WordScanner
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<WordScanner.WordLine>

public class WordScanner extends Object implements Closeable, Iterator<WordScanner.WordLine>
Iterate over the whitespace-separated words in an input source, returning the (1-based) line number along with each word. Whitespace and newline definitions follow those of `Scanner`.