problem in util.Scanner class
sagar priyadarshi
sagar.shivam2005 at gmail.com
Thu Mar 26 23:25:04 PDT 2009
Hello!
I hope this is the right place to ask this question.
Please take note of the following scenario and suggest if its a known bug or
am I doing something wrong!
What exactly I am trying to do is that i am creating a Scanner object and
passing a line of text as an argument to the Scanner class constructor. I am
using the method findInLine("import") so that it returns true if the line
contains import.
But when I use the same method findInLine() with an argument "." ie
findInLine(".") the output which I get is the whole line itself even when
the line of text does not contain a dot (.)
Thanks in advance for your time.
Regards,
Sagar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/jdk6-dev/attachments/20090327/6c134be2/attachment.html
More information about the jdk6-dev
mailing list