title: Reading String and Integer input from text file
body: <p>I have a text file that I'm reading using <code>BufferedReader</code>. The text file is of the form, (String, String, Integer). I'm reading each line using the method <code>inFile.readLine()</code> and converting to a <code>String</code>. I think I'm able to extract the <code>Integer</code> part of it using <code>Integer.parse</code>, but it's not letting me use <code>nextLine()</code>, I think because that's for <code>Scanner</code> and not <code>BufferedReader</code>.</p>
  
  <p>Here's what I have:</p>
  
  <pre><code> try{
    String nextLine;
    String title = "";
    String department = "";
    int year;
  
    BufferedReader inFile = new BufferedReader(new FileReader(inputName));
  
    while((nextLine = inFile.readLine())!= null){
  
      title = nextLine.nextLine();
      department = nextLine.nextLine();
      year = Integer.parseInt(nextLine);
      newList.addCourse(new Course(title, department, year));  
    } 
  
    inFile.close();
    }
  </code></pre>
  
  <p>Would anyone know how I'm suppose to read the <code>String</code> part of my text file?</p>