File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Sort array of string by Date... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sort array of string by Date..." Watch "Sort array of string by Date..." New topic

Sort array of string by Date...

Leeee Ming

Joined: May 24, 2004
Posts: 12

Here are my sample of codes for a small diary i am creating in java to store my meeting details... What i am stuck is how do i go about sorting my arrary list according to the date that i have inputed....
Leeee Ming

Joined: May 24, 2004
Posts: 12
In addition to my question asked, what i require is when i input a date should display all meetings which fall on the specific date which i have inputted.....
Leeee Ming

Joined: May 24, 2004
Posts: 12
After some analyzation of my program...I was thinking of how to use Java Iterator to process the entire list of meetings so as to search for meetings which falls on a specific date(which is my input)

How do i go about doing that..Stuck here..

Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Hi there,

I'm rather puzzled by your code. Firstly, your 2 methods won't work. The add method is merely adding a new meeting to a local list, i.e., they won't be around when you exit the method call. Your listing method is listing nothing. Again, your local variables don't contains any information.

Lastly, what is this Meeting object? Unless you have this class in the same directory as your diary, your code most likely will not compile.

SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
I agree. Here's the link:
subject: Sort array of string by Date...
Similar Threads
not able to get values into database
Help with Castor
Error in Javac compilation for JSP
Need help with using arraylist
Need help in Java Class