title: extract matched line from text file
body: <blockquote>
  <p>a:b:c:d:e</p>
  <p>bb:cc:dd:ee:ff</p>
  <p>ccc:ddd:eee:fff:ggg</p>
  </blockquote>
  <p>I have a textfile content above. I am trying to compare my user input with the text file. For example</p>
  <blockquote>
  <p>cc:dd</p>
  </blockquote>
  <p>When it is found, I need to retrieve the entire line. How can I retrieve the line which my user input? I have tried using <code>while(scanner.hasNext())</code> but I could not get my desire outcome.</p>