The Artima Developer Community
Sponsored Link

Java Answers Forum
Using Stringtokenizer to add to DoubleLinkedList

2 replies on 1 page. Most recent reply: Sep 27, 2002 11:44 AM by Padraic R

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
dawn

Posts: 2
Nickname: dawn
Registered: Sep, 2002

Using Stringtokenizer to add to DoubleLinkedList Posted: Sep 18, 2002 2:14 AM
Reply to this message Reply
Advertisement
Hello Everyone!

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...


dawn

Posts: 2
Nickname: dawn
Registered: Sep, 2002

One more thing... Posted: Sep 18, 2002 2:32 AM
Reply to this message 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.

Padraic R

Posts: 24
Nickname: prenagha
Registered: Sep, 2002

Re: Using Stringtokenizer to add to DoubleLinkedList Posted: Sep 27, 2002 11:44 AM
Reply to this message Reply
StringTokenizer JDK doc has a usage example.

Flat View: This topic has 2 replies on 1 page
Topic: Fetching japanese characters through jdbc Previous Topic   Next Topic Topic: Help with the Sound API

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use