aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sort array of string by Date..." Watch "Sort array of string by Date..." New topic
Author

Sort array of string by Date...

Leeee Ming
Greenhorn

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
Greenhorn

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

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..

Thanks
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Sort array of string by Date...