title: Keep getting InputMismatchException
body: <p>I have a project for an intro to Java course and I keep getting an InputMismatchException. Two grading assistants could not find the problem, so hopefully someone here can! The program uses a document as an input and for some reason is reading it wrong. Attached is a zip file with the input file and all of the classes (although you will probably just need the main class). Also attached are the instructions given by the course. Thanks!</p>
  
  <p>Code where it seems to go wrong: </p>
  
  <pre><code> private OnlineStudent readOnlineStudent(Scanner pIn) {
      String id = pIn.next();
      String lname = pIn.next();
      String fname = pIn.next();
  
      OnlineStudent student = new OnlineStudent(id, fname, lname);
  
      String fee  =  pIn.next();
       - Line 160 &gt; int credits = pIn.nextInt();
  
      if (fee.equals("T")) student.setTechFee(true);
      else student.setTechFee(false);
  
      student.setCredits(credits);
  
      return student;
  }
  </code></pre>
  
  <p>Here is the text of the input document:</p>
  
  <pre><code>C 8230123345450 Flintstone Fred R 0 12
  C 3873472785863 Simpson Lisa N 750 18 
  C 4834324308675 Jetson George R 0 20 
  O 1384349045225 Szyslak Moe - 6
  O 5627238253456 Flanders Ned T 3
  </code></pre>
  
  <p>Stack Trace:</p>
  
  <pre><code>Exception in thread "main" java.util.InputMismatchException
      at java.util.Scanner.throwFor(Scanner.java:864)
      at java.util.Scanner.next(Scanner.java:1485)
      at java.util.Scanner.nextInt(Scanner.java:2117)
      at java.util.Scanner.nextInt(Scanner.java:2076)
      at Main.readOnlineStudent(Main.java:160)
      at Main.readFile(Main.java:84)
      at Main.run(Main.java:189)
      at Main.main(Main.java:31)
  </code></pre>
  
  <p>Link to google drive folder with code and document: </p>
  
  <p><a href="https://drive.google.com/open?id=1rjiXoB-rBd1FQdQQqbGMGL_a1kWd1v_Z" rel="nofollow noreferrer">https://drive.google.com/open?id=1rjiXoB-rBd1FQdQQqbGMGL_a1kWd1v_Z</a></p>