File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes help on exercises Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "help on exercises" Watch "help on exercises" New topic

help on exercises

Corinna Sanchez

Joined: Sep 10, 2003
Posts: 1
I'm trying to do some sample exercises in Data Structures, but I'm a newbie when it comes to Java language. So, could you help me what to do here? Your expertise will be greatly appreciated.
These examples are:
1) Write a method, L.delete First(),
that deletes the first node of a Linked.List object L.
2) Given a non-null pointer N to a List Node of a list L, and a pointer M to a new ListNode to be inserted, write a Java method to insert the node that is M's referent before the node that is N's referent on list L.
[Hint: Adjust pointers to indert M after N and then swap the airport codes in N and M.]
4-ever greatful-
[ September 11, 2003: Message edited by: Corinna Sanchez ]
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
here it is... :)

The secret to creativity is knowing how to hide your sources.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Hi Corinna,
I am going to close this thread since it is a duplicate post. Please try to refrain from posting duplicate posts in the future. Thanks.
Also, as Bear had mentioned in that other thread, we tend to not do people's homework for them. Not because we don't want to help you learn, that actually is what we want more than anything. And giving you the answers to your homework will not help you learn. Doing it and experience is the greatest education you can have.
Good Luck.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: help on exercises
It's not a secret anymore!