Ah, good point jassi. A String can be compared to a StringBuffer using the String.contentEquals(StringBuffer) method; String.equals(Object) will always return false if the Object is not a String. ...
Type: Posts; User: Shambolic
Ah, good point jassi. A String can be compared to a StringBuffer using the String.contentEquals(StringBuffer) method; String.equals(Object) will always return false if the Object is not a String. ...
Is the output from the following two lines what you expect it to be?
System.out.println("palindrome: " + palindrome);
System.out.println("numbers: " + numbers);
I'm guessing it's not. ...