Table of Contents [hide]
String’s contentEquals method is used to compare String with StringBuffer. It returns boolean datatype.
When you run above program, you will get below output:
Method syntax:
String contentEquals Example:
Please note that contentEquals method is case sensitive as you can see in above example
Was this post helpful?
Let us know if this post was helpful. Feedbacks are monitored on daily basis. Please do provide feedback as that\'s the only way to improve.