<<< StringBuilder length( ), setLength( ), capacity( ) methods | Index | >>> |
StringBuilder equals() method compares references, not data!
To compare the contents of two StringBuilder objects, use
objOne.toString().equals( objTwo.toString() )
<<< StringBuilder length( ), setLength( ), capacity( ) methods | Index | >>> |