|
-- Posted by InsaneBlue 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
-- Posted by Solitude at 3:14 am on Nov. 16, 2008
I don't think it's possble
-- Posted by matto at 8:14 pm on Dec. 2, 2008
A character that represents an indent? All I can think of is tab... "\t".
-- Posted by h a t t 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.
-- Posted by sakurag at 8:57 pm on Dec. 21, 2008
I would recommend you type out some indents and then programmatically output the ascii value?
|