title: 1. Scanning current (as opposed to next) line location. 2. Scanning line X (Java Beginner)
body: <p>let's say I have a text file I'm inputing text from...</p>
  
  <pre><code>File file = new File("example.txt");
  
  Scanner inputFile = new Scanner(file);
  </code></pre>
  
  <p>if I want to reference the next line of text I would do </p>
  
  <pre><code>inputfile.nextLine();
  </code></pre>
  
  <ol>
  <li><p>Let's say I want to reference that same line of text again. Is there like a "currentLine()" method? What else could I do?</p></li>
  <li><p>In general, let's say I want to open the file and refer to the 3rd line of text or the 150th line or whatever, how do I get the Scanner to read that specific line?</p></li>
  </ol>