This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Compare Content of StringBuilder
Joined: Jul 30, 2006
Nov 11, 2007 09:04:00
How can I compare if are equals in caracters, like I compare strings, because when I use equals method it compares only the object and not the caracters.
How can I do in this case?
Joined: Sep 28, 2004
Nov 11, 2007 09:38:00
I believe the way to do this is to use toString() to get the strings, and compare them.
Java Threads, 3rd Edition
Jini in a Nutshell
Java Gems (contributor)
Have you checked out
subject: Compare Content of StringBuilder
Send SMS by AT command
Using characters like quote, ampersand in xml
a question about equals() method?
Difference between '/' and '\' when useing file path names
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015