Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
Joanne
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Tony Morris
Java Q&A (FAQ, Trivia)

Originally posted by omkar patkar:
In StringTokeinzer class, default delimiters are " newline" and "carriage return".....whats the difference between the two ?
and to make sure we are clearly separating (excuse the pun) line terminators and token delimiters. The initial question was a little misleading, for those not familiar with the StringTokenizer class, in stating that default delimiters are "newline" and "carriage return". From the API doc for StringTokenizer(String str):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.

SCJP, SCWCD, SCBCD
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
IT[Campbell@localhost java]$
SCJP, SCWCD, SCBCD
Campbell Ritchie wrote:Please don't reopen a 4-year old thread.
sorry to wake a sleeping thread; when I had posted a previous thread I had been referred to an old thread; so this time I thought it was better to check the existing ones before I posted a new one. Really sorry!
SCJP, SCWCD, SCBCD

Suyash Soni wrote:hey guys see the image that i've attached.
|
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
|