title: How to read NumberFormatException error message?
body: <p><strong>[NOTE]</strong> Add to the answer below for other good tips for reading the stack trace</p>
  
  <p>I am getting an error in a program that I am making and I don't know how to fix it.</p>
  
  <p>The user has to choose options from messageboxes, and I have to use the users input to calculate the tuition they will have and their discount.</p>
  
  <h2>If I run it!</h2>
  
  <pre><code> run: Exception in thread "main" java.lang.NumberFormatException: For input string: ""
                  at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
                  at java.lang.Integer.parseInt(Integer.java:468)
                  at java.lang.Integer.parseInt(Integer.java:497)
                  at cabrera.Main.main(Main.java:26)
          Java Result: 1
          BUILD SUCCESSFUL (total time: 6 seconds)
  </code></pre>
  
  <h2>Code</h2>
  
  <pre><code>package cabrera;
  
  /**
   *
   * @author Owner
   */
  import javax.swing.JOptionPane;
  
  public class Main {
  
      /**
       * @param args the command line arguments
       */
      public static void main(String[] args) {
  
          String tuition1 = "", scholar1 = "";
          int tuition = 0, scholar = 0;
          double discount = 0.0;
  
          JOptionPane.showInputDialog("Input Your Tuition" + tuition1);
          JOptionPane.showInputDialog("Choose A Scholar Discount:" + "\n• 1 = 80% " + "\n• 2 = 50%" + "\n• 3 = 25%" + "\n• 4 = No Discount !" + scholar1);
  
          tuition = Integer.parseInt(tuition1);
          scholar = Integer.parseInt(scholar1);
  
          JOptionPane.showMessageDialog(null, "Your Total Tuition is: " + tuition);
  
          // If-elseif-else statements based on scholar variable
  
      }
  }
  </code></pre>
  
  <p><strong>How do I fix this error message?</strong></p>
  
  <h2>More Info</h2>
  
  <p>I recently came across a <a href="https://stackoverflow.com/questions/25100505/else-if-statement-multiple-input-message-dialog-boxes-pr">question</a> that was badly executed. Bad title, bad code, bad question (actually not question, but it could be assumed after some thought). It was from a new SO user.</p>
  
  <p>I wanted to help out and looked at the code for a while. So I edited the post; fixed the code layout, simplified the code, ask the question the OP wanted to ask, etc.... That question is now above; however, the question was put on hold, and I read that questions can take a long time to get off of <code>On Hold</code>. You need something like 5 votes to reopen after it is put on hold. Something I don't see that will happen given that it has been a while since the question was first asked.</p>
  
  <p>I had the answer complete and don't want to waste a good answer</p>