I'm a new Java student, grasping things like stringtokenizer (a type of parser, i believe), PrintWriter/reader, BufferedReader/writer and FileWriter/Reader and Double Linked Lists (which i have created and it works).
I'm currently working on a program that involves creating a parser class that contains a list of commands to initialise my double linked list with, add to the list, remove the last command from the list, trace the list(which all invlove my linked list), save the list(which would involve bufferedReader and FileReader), clear the list and finally catch exceptions (such as an invalid command).
I know what to do - it's HOW to go about doing it that's bothering me! Can anyone give me some helpful tips or source code that involves parsing (using stringtokenizer) in a command from a class (creating an instance of it), adding it to my DoubleLinkList and doing all the other things mentioned above?!
If you are willing, you can send helpful hints to my address - nugget_84@hotmail.com. Any help is much appreciated! Anticipating anyone's reply...
Ooops - one thing i forgot to mention is that the command come from a number of subclasses (i.e - a class for forward, a class for backward) which i must add to the doublelinkedlist using stringtokeniser.