Hi Fred
My code starts as follows:-
public class Tokenize {
public static void main(
String[] args) {
// read the input file
if(args.length != 1) {
System.err.println("pass the name of the file to be read as an argument");
System.exit(-1);
}
String fileName = args[0];
// use a TreeSet<String> which will automatically sort the words
// in alphabetical order
Set<String> words = new TreeSet<>();
Bob M