I am working on a program that reads in a text file as a command line argument, then goes through the file, breaking the file down into strings, special symbols (such as .:!;?) and integers. The program stores each type into its own collection. I have all the collection methods and everything written, but am now writing the client to go through the file and break it apart into these three different types. I am not sure how to go about doing this. Should I be using fileName.next() to go through and compare the token to the various types?
I am not looking for the code, but for ideas of what I should be researching to figure this problem out. Thanks for any help in advance.