on 10-10-2007 10:35 AM
Hi,
I am getting some dates as values in a value node and I want to sort the dates in ascending order. how can I do it??
Is there any function which I can use???
Thanks and Regards.
Rahul
Hi
use this
java.util.Date dt=new java.util.Date();
java.util.Date dt1=new java.util.Date();
if(dt.after(dt1)){
System.out.println("dt is higher");
}
if(dt1.after(dt)){
System.out.println("dt1 is higher");
}
Regards
Abhijith YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Implement the comparable interface
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Comparator.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.