• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to compare the value inside StringBuffer and String?

 
Johnson David
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the procedure to compare a value inside a StringBuffer and a String
objects ?



thanx
johnson david
 
Timmy Marks
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use StringBuffer's toString() method and compare 2 Strings (use the equals() method)
 
Johnson David
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Timmy Marks , for ur immediate response
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic