I know that I can find the new line of system with
System.getProperty("line.separator");
does the line.separator will be always new line ?
How I can do the same for tab ?
I dont think there is an equivalent for tab, is a single character. while the system property line.separator is a (oracle docs)
line.separator
Sequence used by operating system to separate lines in text files
which mean it can be more than one character depending on the operation system the application running on. It can be or or .
Many text editing application offer to replace a tab key press by a sequence of spaces instead of the single character , from which users may define the length. This is handled by the application itself.
2.1m questions
2.1m answers
60 comments
57.0k users