• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help on exercises

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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-
CS
[ September 11, 2003: Message edited by: Corinna Sanchez ]
 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here it is... :)
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Mark
 
Whatever you say buddy! And I believe this tiny ad too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic