This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes how to compare the value inside StringBuffer and String? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "how to compare the value inside StringBuffer and String? " Watch "how to compare the value inside StringBuffer and String? " New topic
Author

how to compare the value inside StringBuffer and String?

Johnson David
Greenhorn

Joined: May 22, 2005
Posts: 27
What is the procedure to compare a value inside a StringBuffer and a String
objects ?



thanx
johnson david
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
use StringBuffer's toString() method and compare 2 Strings (use the equals() method)
Johnson David
Greenhorn

Joined: May 22, 2005
Posts: 27
Thanx Timmy Marks , for ur immediate response
 
Don't get me started about those stupid light bulbs.
 
subject: how to compare the value inside StringBuffer and String?
 
Similar Threads
equals method and StringBuffer
Tips,oneliner Just before the SCJP Exam
in what condition the equls to compare whether the two are the same object?
string equals question
String and StringBuffer