The Artima Developer Community
Sponsored Link

Java Answers Forum
HELP PLEASE!! Linked Lists

11 replies on 1 page. Most recent reply: Oct 7, 2003 6:34 PM by Matt Gerrans

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 11 replies on 1 page
Roberto Murillo

Posts: 2
Nickname: compuib
Registered: Oct, 2003

HELP PLEASE!! Linked Lists Posted: Oct 2, 2003 9:03 AM
Reply to this message Reply
Advertisement
I really would appreciate some help in creating linked lists in Visual Age for JAVA. I will be storing basically text, as I'm trying to do a To-Do list... nothing to profestional but I need to learn how to add, delete, and move items around nside the linked list. I also need to add items in places like the middle of the list, not only at the end... help would be really appreciated.
It would also be really helpful to know if linked lists can be stored as files on the computer.


David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: HELP PLEASE!! Linked Lists Posted: Oct 2, 2003 3:22 PM
Reply to this message Reply
OK...what code do you have so far? Have you found the LinkedList class yet?

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: HELP PLEASE!! Linked Lists Posted: Oct 2, 2003 7:06 PM
Reply to this message Reply
After you finish doing a little research in the JavaDocs on the java.utils.LinkedList class, you just need to read up a bit on serialization, allows you to save the linked list to file; you'll just have to make your "item" object -- whatever is stored in the LinkedList -- Serializable. It's not too difficult; probably the most complicated part will be using Java's I/O library.

Roberto Murillo

Posts: 2
Nickname: compuib
Registered: Oct, 2003

Re: HELP PLEASE!! Linked Lists Posted: Oct 2, 2003 9:40 PM
Reply to this message Reply
no.. I realy hadn't found the linked lists class, and am trying desperately to learn how to make files (terrible teacher...). as I said, any help will be REALLY welcome.
It's really more of a personal projet than an IB one, but the knowledge will eventually will prove useful.

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: HELP PLEASE!! Linked Lists Posted: Oct 2, 2003 10:32 PM
Reply to this message Reply
After Matt specifically told you where to look for the LinkedList class, if you still couldn't find it, then I guess you have long way to go. If you really didnt know to navigate the JavaDoc, a simple google search would have helped you to find the required info.

Anyway here is the link to the JavaDoc to the LinkedList

http://java.sun.com/j2se/1.4.1/docs/api/java/util/LinkedList.html

Devasenapathy

Posts: 1
Nickname: deva
Registered: Oct, 2003

Re: HELP PLEASE!! Linked Lists Posted: Oct 2, 2003 11:07 PM
Reply to this message Reply
well i think i have the code and some short note of mine
if u like it please send me the mail
but it is the esay one in data structure

It is like this

there are A B C three box
then u want to add D box
first what u do is assign D
Create the link
ex(Link newLink = new Link(dd);)

eg now u have to Link it

(newLink.next = first; )

then what u do is to then u change the staus of the linklist or pointer (in C not in java)

eg:- (first = newLink;)

u want more send me a e-mail
kunchi@webstation.lk

David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: HELP PLEASE!! Linked Lists Posted: Oct 3, 2003 6:13 AM
Reply to this message Reply
erm...Devasenapathy...from the looks of your post, you're suggesting to Roberto that he should build the Linked List from scratch - I don't think that this a good suggestion!

If he was doing a Data Structures course, fine. However, if he needs a tool to do a job, he should be getting used to immediately checking the Java API to see if it already been written. The whole "I could write it better from scratch" attitude is *really* bad attitude to get into.

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: HELP PLEASE!! Linked Lists Posted: Oct 3, 2003 9:50 AM
Reply to this message Reply
I think Devasenapathy is just getting started in thid forum. Its good that he is starting by posting an answer rather a question. But I agree with David on get the job done attitude, rather than reinvent the wheel.

Kunchithapatham

Posts: 5
Nickname: sivam
Registered: Oct, 2003

Mr.david can u help this ploease Posted: Oct 7, 2003 3:07 AM
Reply to this message Reply
Serial port connection through web based solution


Hi Guys,



I am my doing my computer project for my final year. As usual like everyone else at this stage I am also at the research stage to find out the suitable project topic within my interest areas. As usual the normal project guideline is that this has to be unique in some sense.



I am interested in project related to the areas I have listed below.



1. Java.

2. Oracle

3. Graphics

4. little bit of XML





I have couple of ideas which I already collected, I am listing them down below.



1. Serial port connection through web based solution.



This is basically to provide a client server (most probably RMI client and server) model to access a serial port through a remote machine. I am also planning to give a Web Interface where a user can manage multiple such connections. I think this would be useful mostly in telecom industry since all the telecom switches support serial port communication it will be able to provision services remotely.



2. Heath care System



Well user get the report form external machines and collected into the database and prepares a report and gives to the user. And some advice for the user on the other hand is the user report is in bad condition then it automatically sends to the doctor who take hander these situation an it gives appointment letter / number for consultancy





I am looking for any new ideas you guys have or any criticism for the ideas I have presented which will enable me to refine my ideas? Please help me out here,



Thank you for your time.

Kunchithapatham

Posts: 5
Nickname: sivam
Registered: Oct, 2003

Mr.david can u help this ploease Posted: Oct 7, 2003 3:10 AM
Reply to this message Reply
Serial port connection through web based solution


Hi Guys,



I am my doing my computer project for my final year. As usual like everyone else at this stage I am also at the research stage to find out the suitable project topic within my interest areas. As usual the normal project guideline is that this has to be unique in some sense.



I am interested in project related to the areas I have listed below.



1. Java.

2. Oracle

3. Graphics

4. little bit of XML





well one of the project topic



1. Serial port connection through web based solution.



This is basically to provide a client server (most probably RMI client and server) model to access a serial port through a remote machine. I am also planning to give a Web Interface where a user can manage multiple such connections. I think this would be useful mostly in telecom industry since all the telecom switches support serial port communication it will be able to provision services remotely.



I am looking for any new ideas you guys have or any criticism for the ideas I have presented which will enable me to refine my ideas? Please help me out here,



Thank you for your time.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Mr.david can u help this ploease Posted: Oct 7, 2003 11:37 AM
Reply to this message Reply
Hi Kunchithapatham, since this is a new topic, you should
Post a New Topic[/i] instead of adding it to an unrelated thread.

As far as your project goes, whatever you do, please, please don't use XML for configuration files!

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Mr.david can u help this ploease Posted: Oct 7, 2003 6:34 PM
Reply to this message Reply
Whoops! That should have been:

"Post a New Topic instead of adding it to an unrelated thread.

As far as your project goes, whatever you do, please, please don't use XML for configuration files!"

Flat View: This topic has 11 replies on 1 page
Topic: visual c++ and JNI Previous Topic   Next Topic Topic: PLS NEED HELP ASAP!

Sponsored Links



Google
  Web Artima.com   

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