Different systems use different characters or sequences of characters as line separators. Do not hardcode "\n", "\r", or "\r\n" as the line separator in your program. Instead, use the println() method of PrintStream or PrintWriter, which automatically terminates a line with the line separator appropriate for the platform, or use the value of the line.separator system property.
Showing posts with label Java Code. Show all posts
Showing posts with label Java Code. Show all posts
Wednesday, October 24, 2007
Subscribe to:
Comments (Atom)