Previous Page Start of Tutorial > Start of Trail > Start of Lesson Lesson Contents

Trail:
Learning the Java Language
Lesson:
The Nuts and Bolts of the Java Language



Help on searching
is available.

Search technology
by Excite, Inc.

Platform-Specific Details: Running the countChars Method

UNIX
% java Count testing
Counted 44 chars.
DOS shell (Windows 95/NT)
C:\> java Count testing
Counted 45 chars.
Note: The program gives different results for different platforms because the program counts new line characters. On UNIX, a new line is a single character: \n. In Windows 95/NT, it's two: \r\n.
 
Previous Page Start of Tutorial > Start of Trail > Start of Lesson Lesson Contents