A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Simple question "compareTo"
Elahe Shafie
Ranch Hand
Joined: Dec 12, 2001
Posts: 291
posted
May 01, 2002 15:41:00
0
Hi Friends,
I try to compare strFixedDate if it is not equal "" how can I write it?
?? strFixedDate compareTo(!"");
Thanks,
Elahe
Thanks,
Elahe
Roy Ben Ami
Ranch Hand
Joined: Jan 13, 2002
Posts: 732
posted
May 01, 2002 16:00:00
0
if (!(strFixedDate.equals(""))) ???
Elahe Shafie
Ranch Hand
Joined: Dec 12, 2001
Posts: 291
posted
May 01, 2002 16:08:00
0
Thanks Roy...
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Simple question "compareTo"
Similar Threads
Using a Comparator in Collections
Confused about use of compareTo()
Comparator
Priority Queue doubt
Collections.binarySearch Question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter