It must unread() (push back) the character.
Here is a testing program for the scanner. It merely prints tokens to the monitor. The name of the HTML file it examines comes from the command line.
import java.io.*;
class WebScannerTester
{
public static void main ( String[] args ) throws _________________
{
FileReader fr;
String token;
WebScanner wbs;
if ( args.length != 1 )
{
System.out.println("tester inputFile");
System.exit( -1 );
}
fr = new _________________( args[0] );
wbs = new WebScanner( fr );
while ( (token = wbs._________________()) != null )
{
System.out.println( ":" + token );
}
}
}
Fill in the blanks.