This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String Compare in Java

 
Joachim Milsom
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another stupid question, how do you do a string compare in java?
Thanks
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learn to use the Java API docs.
String.equals()
String.equalsIgnoreCase()
String.compareTo()
String.compareToIngoreCase()
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic