Previous


Platform-Specific Details: Running a Java Application

UNIX
% java CountFile testing
testing has 70 chars.
DOS shell (Windows 95/NT)
C:\> java CountFile testing
testing has 71 chars.
Note: the program gives different results for UNIX and DOS systems. On UNIX when you press the return key, you get a single character: \n. However, on DOS when you press the return key, you get two characters: \r\n.


Previous