wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes String Compare in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String Compare in Java" Watch "String Compare in Java" New topic
Author

String Compare in Java

Joachim Milsom
Greenhorn

Joined: Oct 30, 2002
Posts: 3
Another stupid question, how do you do a string compare in java?
Thanks
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
Learn to use the Java API docs.
String.equals()
String.equalsIgnoreCase()
String.compareTo()
String.compareToIngoreCase()
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Yes, but. I find those web pages hard to handle at times. Esp when I was starting out. I would suggest a good book that summerizies the api. Like "Java in a Nutshell" published by O'Reilly.


Please ignore post, I have no idea what I am talking about.
 
wood burning stoves
 
subject: String Compare in Java