LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 420 users online 225533 members 499 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
CrackWaffles
Peeves: Chronic stupidity.
Mood: Crazy
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
2 online / 32 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Adding Reply

Quoting Post
Archived Topic: It will not be bumped to the top of the forum.
Topic indexOf Indents?
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
InsaneBlue Posted at 12:19 pm on Sep. 17, 2008
I'm not going to get too hopeful, but is there a character or something that represents an indent in Java? I need to be able to get the indexOf() an indent.

Thanks.

P.S. 30 points!!!11@@!21

Replies
sakurag Posted at 8:57 pm on Dec. 21, 2008
I would recommend you type out some indents and then programmatically output the ascii value?
h a t t Posted at 6:01 pm on Dec. 21, 2008
if you create a char variable and give it the value of 9 it'll be a tab.

i.e.

Code:

public static void main(String[] args) {

char tab = 9;
System.out.println("blah" + tab + "fasdf");

}

so yeah, 9 is the ascii number for the tab.

matto Posted at 8:14 pm on Dec. 2, 2008
A  character that represents an indent?  All I can think of is tab... "\t".
Solitude Posted at 3:14 am on Nov. 16, 2008
I don't think it's possble
All 4 previous replies displayed.