aspose file tools*
The moose likes Beginning Java and the fly likes on calling methods.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "on calling methods.." Watch "on calling methods.." New topic
Author

on calling methods..

marc perry batuigas
Greenhorn

Joined: May 05, 2004
Posts: 8
it's me again... er, still got a question to ask bout my last program, this time it concerns calling methods...well in my program (MyLinkedList), i used bufferedreader to read the text file, then put it again on StrongTokenizer to read each character of the text file, in a line...assuming i have already initialized the linkedlist into my main and bufferedReader has read the file, and stringTokenizer is reading a line, i want to call, say, remove, how do i call the methods while still in the stringTokenizer?
really need some answers guys, this is my 2nd year as BSIT, and i'm doing my best to love java...and MyLinkedList is just one of the three of my school projects. hope to hear from someone soon...


~gwapo ko~
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Please post the code you have so far. Be sure to use the code button to create code tags so your indentation is preserved.


Mike Gershman
SCJP 1.4, SCWCD in process
marc perry batuigas
Greenhorn

Joined: May 05, 2004
Posts: 8

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

How about creating an instance of your MyLinkedList in the main-method?
Than you could use this instance, and add, remove, ...
And I would suggest moving the main-method to a separate class, since your List shouldn't be bundled to a specific usage of it.
[ May 08, 2004: Message edited by: Stefan Wagner ]

http://home.arcor.de/hirnstrom/bewerbung
marc perry batuigas
Greenhorn

Joined: May 05, 2004
Posts: 8
got the solution already guyz...LOLz
this forum really helped me alot...hope u continue to help others too sa u did for me...thanks a million and more POWER!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: on calling methods..