This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

String Compare in Java  RSS feed

 
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: 1049
2
IntelliJ IDE Java Spring
  • 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.
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!