LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 597 users online 192292 members 1921 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Dictionary | News | FAQ
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
5 online / 52 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

indexOf Indents?
Replies: 4Last Post Dec. 21, 2008 8:57pm by sakurag
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( InsaneBlue )


Enlightened One

Patron
Reply
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

-------
Ron Paul 08!


12:19 pm on Sep. 17, 2008 | Joined Sep. 2006 | 471 Days Active
Join to learn more about InsaneBlue New Hampshire, United States | Straight Male | 3642 Posts | 14433 Points
solitude

Soothsayer

Patron
Reply
I don't think it's possble

-------
Thank you greatescape11:)
You're welcome HatesYou
click for support

3:14 am on Nov. 16, 2008 | Joined July 2008 | 109 Days Active
Join to learn more about solitude Spain | Straight Female | 11958 Posts | 11722 Points
matto


Soothsayer

Patron
Tech Support Leader
Reply
A  character that represents an indent?  All I can think of is tab... "\t".

-------
"You're a bold kid, Arnold.
A bold kid."
--Gerald

8:14 pm on Dec. 2, 2008 | Joined Aug. 2007 | 308 Days Active
Join to learn more about matto California, United States | Bi-curious Male | 6299 Posts | 11915 Points
h a t t


Guru

Sustainer
Reply
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.

-------
i live low enough so the moon won't waste its light on me
LW Greasemonkey Repository
#igloos chat


6:01 pm on Dec. 21, 2008 | Joined June 2008 | 188 Days Active
Join to learn more about h a t t Ontario, Canada | Straight Male | 5379 Posts | 24974 Points
sakurag


Soothsayer

Patron
Reply
I would recommend you type out some indents and then programmatically output the ascii value?

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.

8:57 pm on Dec. 21, 2008 | Joined Oct. 2002 | 606 Days Active
Join to learn more about sakurag Washington, United States | Straight Male | 2283 Posts | 10561 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic