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 stringubuffer equals method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "stringubuffer equals method" Watch "stringubuffer equals method" New topic
Author

stringubuffer equals method

Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521
why is the equals method not overridden in stringbuffer class...how do i check if two stringbuffer objects have the same content?

i think only way we can do is invoking toString() on the stringbuffer objects and then calling equals on them


scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

why is the equals method not overridden in stringbuffer class...how do i check if two stringbuffer objects have the same content?

If you had done a search in the forum, you would've landed on this thread...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stringubuffer equals method