jQuery in Action, 2nd edition*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to compare the value inside StringBuffer and String?
 
Similar Threads
String and StringBuffer
in what condition the equls to compare whether the two are the same object?
equals method and StringBuffer
Tips,oneliner Just before the SCJP Exam
string equals question