It's not a secret anymore!
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

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.


Java API Documentation
The Java Tutorial
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Generic Java
jQuery in Action, 3rd edition