Hello!<br><br>I hope this is the right place to ask this question.<br><br>Please take note of the following scenario and suggest if its a known bug or am I doing something wrong!<br><br>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.<br>
<br>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 (.)<br><br>Thanks in advance for your time.<br>
<br>Regards,<br>Sagar<br>