EOL : Java Glossary


EOL (End Of Line). In Java, usually the end of line is marked by \n (0x0a). In native files, sometimes end of line is marked by \r\n 0x0d 0x0a. (e.g. in Windows systems which hark back to the teletype which had to be told separately to move the printhead to the left margin and one line down.) If you use a DataOutputStream, there will be no special marker unless you put one there. To code in a platform-independent way use:
String eol = System.getProperty(line.separator);
Note the spelling. 80% of programmers are under the delusion separator is spelled seperator. The println, newLine and readLine methods should let you ignore the problem of local newline conventions.

Sometimes means EOL (End-of-Life).

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number