wood burning stoves*
The moose likes Beginning Java and the fly likes Generic Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Generic Java

Timothy Leong
Ranch Hand

Joined: May 25, 2005
Posts: 55
hi guys,
I'm trying to use generic java
the code below is actually implementation of linked list. It has to insert in ascending order.
How do I handle the bold portion?
I got 2 linked list. Customer and Transaction. Both are requried to insert in ascending order. for customer, sort according to name and for transaction sort according to the date. How do I amend the bold portion?? thanks


[ September 22, 2005: Message edited by: Timothy Leong ]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Why do you think the bold portion needs to be changed? What does this code do and how does it differ from what you expect? As you can see from my questions, we need some more details in order to help you fix the problem.

Layne


Java API Documentation
The Java Tutorial
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Timothy, you know our policy about duplicate postings. Please do not post duplicate threads. You now have three threads with the same question. Two in this forum and one in the Intermediate forum. I am going to close both that are in this forum and leave it in the Intermediate forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Generic Java