Thanks & Regards,<br />T.Srinivasan,<br />SCWCD 1.4(89%),SCJP 5.0(75%)<br />"That service is the noblest which is rendered for its own sake." - Mahatma Gandhi
Louis Moloney
Ranch Hand
Joined: Feb 06, 2007
Posts: 59
posted
0
A is incorrect
A will produce 123 only.
Sanjeev Narula
Greenhorn
Joined: Mar 16, 2007
Posts: 19
posted
0
hi
Regarding C option why did not it also prints other integers like 3 45 5 76
Srinivasan thoyyeti
Ranch Hand
Joined: Feb 15, 2007
Posts: 557
posted
0
Hi Sanjeev,
I have clearly described in my first reply ...
By default Scanner splits given string using " ". Which ever tokens are integers they will only be displyed.
you can't expect ex: x42y to be displayed as 42.
All the best
Sanjeev Narula
Greenhorn
Joined: Mar 16, 2007
Posts: 19
posted
0
Thanks Srinivasan .Now i am having better understanding of Scanner Class.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.