LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 675 users online 211480 members 1657 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
devilmaycrydude
Favs: cool stuff
Mood: Speechless
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 / 46 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 )


Guru

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

-------
U LO VE ME


12:19 pm on Sep. 17, 2008 | Joined: Sep. 2006 | Days Active: 609
Join to learn more about InsaneBlue Afghanistan | Straight Male | Posts: 5,145 | Points: 23,532
Solitude


Soothsayer

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: 210
Join to learn more about Solitude Spain | Lesbian Female | Posts: 12,212 | Points: 13,903
matto


Enlightened One

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

-------
"Strong am I with the Force, but not that strong.
Twilight is upon me, and soon, night must fall.
That is the way of things. The way of the Force."
--Yoda

8:14 pm on Dec. 2, 2008 | Joined: Aug. 2007 | Days Active: 438
Join to learn more about matto California, United States | Male | Posts: 8,820 | Points: 16,869
h a t t


Enlightened One

Patron
Tech Support Leader
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.

-------
#igloos chat


6:01 pm on Dec. 21, 2008 | Joined: June 2008 | Days Active: 302
Join to learn more about h a t t Ontario, Canada | Straight Male | Posts: 9,365 | Points: 16,295
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: 752
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,555 | Points: 11,297
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