This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Simple question "compareTo"" Watch "Simple question "compareTo"" New topic
Author

Simple question "compareTo"

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
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
if (!(strFixedDate.equals(""))) ???
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Thanks Roy...
 
Don't get me started about those stupid light bulbs.
 
subject: Simple question "compareTo"