java - how to create tab with system get property? -
i know can find new line of system with
system.getproperty("line.separator");
does line.separator new line ?
how can same tab \t?
i dont think there equivalent tab, \t
single character. while system property line.separator
(oracle docs)
sequence used operating system separate lines in text files
which mean can more 1 character depending on operation system application running on. can \n
or \r
or \r\n
.
many text editing application offer replace tab key press sequence of spaces instead of single character \t
, users may define length. handled application itself.
Comments
Post a Comment