Originally posted by omkar patkar:
In StringTokeinzer class, default delimiters are " newline" and "carriage return".....whats the difference between the two ?
The tokenizer uses the default delimiter set, which is " \t\n\r\f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.
I am old enough to remember the TTY (Teletype); we had to use CR to move the head back to the left, then LF to move the paper one line up.
[Campbell@localhost java]$ java CRDemo