wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 984

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String Compare in Java
 
Similar Threads
Assertion issue
What are the similarities between java and flex ?
String reference
compare a String created at runtime? pls help
JDK 1.4 Regular expressions