compare « StringBuffer « Java Data Type Q&A





1. Compare two StringBuffer objects    coderanch.com

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ...

2. How to compare two StringBuffer or StringBuilder objects ?    coderanch.com

I am trying to make the below program work PROPERLY (it compiles) : I read in the K&B book that password entered via readPassword() of console must not be saved as a string because it may remain in the string pool and be misused...blah...blah...hence i am avoiding the use of string in the below question. The Aim : Password class takes ...

3. Compare String and StringBuffer    forums.oracle.com

4. Comparing strings when using StringBuffer    forums.oracle.com

I am trying to determine if an inputted string is a palindrome (the same backwords as forewords). I am able to reverse the string, but I cannot compare the two strings in order to see if the reversed string is the same as the origional. Thanks for your help. import java.io.*; import java.util.*; public class Palindrome { public static void main(String[] ...