File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
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