A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
character to insert space
Joined: Feb 24, 2005
Apr 25, 2005 09:26:00
How can I insert spaces in output
Similar to \t for tab what is the character for space?
Also is there any site where there is a list of these characters?
Joined: Jan 08, 2005
Apr 25, 2005 09:42:00
Joined: Feb 18, 2005
Apr 25, 2005 09:54:00
A space between single quotes in the source code is a Space char.
String name = "vivek ja"; int spaceIndex = name.indexOf(' ');
If you want something that uses more toner from your laser printer, you could use the C type /xxx escape sequence (where xxx is an octal number).
'\t' = '\011'
' ' = '\040'
is page with the whole list.
TAB is '\t'
CR is '\r'
LF is '\n'
BS is '\b'
FF is '\f'
introduces Unicode escape sequences. \uxxxx where xxxx is a four hexadecimal digit Unicode number. For a Space use '\u0020'.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: character to insert space
can't update database?
Call a servlet on the url pattern /_/
Display character for HTML Number
Word wrapping long text without whitespaces
cutting string into peaces
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014