• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stringubuffer equals method

 
Raju Champaklal
Ranch Hand
Posts: 521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic