Search:

Type: Posts; User: Shambolic

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    2,274

    Re: Code not printing correctly

    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. ...
  2. Replies
    5
    Views
    2,274

    Re: Code not printing correctly

    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. ...
Results 1 to 2 of 2