LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 382 users online 225441 members 272 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Darklancer17
No Parking
Mood: Relaxed
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
3 online / 20 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 )


Swami

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

-------
The man who once was but never has been.

Click Me


12:19 pm on Sep. 17, 2008 | Joined: Sep. 2006 | Days Active: 743
Join to learn more about InsaneBlue New Hampshire, United States | Straight Male | Posts: 6,857 | Points: 27,897
LiveWire Humor
Solitude


Enlightened One

Patron
Reply
I don't think it's possble

-------
Thank you Isobel

For modding the deep thoughts and random shitty theism forum
Aka "Religion and Philosophy: The forum that makes a case for Eugenics

3:14 am on Nov. 16, 2008 | Joined: July 2008 | Days Active: 362
Join to learn more about Solitude Spain | Lesbian Female | Posts: 12,315 | Points: 15,507
matto

Enlightened One

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

-------
"Say what you like about the tenets of National Socialism, Dude,
at least it's an ethos."
--Walter Sobchak

8:14 pm on Dec. 2, 2008 | Joined: Aug. 2007 | Days Active: 496
Join to learn more about matto California, United States | Male | Posts: 9,856 | Points: 15,601
h a t t



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


6:01 pm on Dec. 21, 2008 | Joined: June 2008 | Days Active: 305
Join to learn more about h a t t Ontario, Canada | Straight Male | Posts: 9,365 | Points: 31,968
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 | Days Active: 895
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,887 | Points: 12,678
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