Java scanner class, reading from a txt file
<p>I have a txt file called search.txt, i am using the java scanner class to search this file.</p>

<p>but if for instance, i have a query such as search yellow and red, which will obviously search for yellow and red,if found in the same sentence how do i get it to  score higher than if they found in different sentences.</p>

<p>I did not mean to wrote in cap locks, and i had no reason to shout.</p>
