Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

\t tab character not working in String Builder? Help please.

807606Mar 4 2007 — edited Mar 4 2007
I'm trying to use the string builder and need to incorporate a couple of \t tabs inside there but for some reason the tabs arn't being picked up inside the string builder asthough it doesn't recognize them!? I've had inconsistancy with using tabs in string builder before and in my current program they simply arn't working at all!

Has anyone else had this same problem or knows of a fix?

Help would be appreciated, this is rather annoying.
hsReport.append("Player ID:\tScore: \n\n");
        
        for (Player i : highScores) { //for each player in highScores
            hsReport.append(i.getId()).append("\t").append(i.getScore()).append("\n");
        }
Theres my code, neither of the \t characters are being picked up.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2007
Added on Mar 4 2007
4 comments
4,279 views