title: NetBeans Java Calculator Query
body: <p>I'm having a small problem that is when im multiplying for example 5*5 the answer will be 25. But when multiplying 5*5*5 the answer will still stay 25.. Help?</p>
  
  <p>The Variables</p>
  
  <pre><code>public class Calculator extends javax.swing.JFrame {
  
      double total;
      double input;
  
      boolean plus = false;
      boolean multi = false;
      boolean division = false;
      boolean minus = false;
  }
  </code></pre>
  
  <p>The Multiply button </p>
  
  <pre><code>private void btnMultiActionPerformed(java.awt.event.ActionEvent evt) {                                         
      input = Double.parseDouble(txtArea.getText());
  
      total = input;
      multi = true;
      txtArea.setText(null);
  }         
  </code></pre>
  
  <p>The Equals Button</p>
  
  <pre><code>private void btnEqualsActionPerformed(java.awt.event.ActionEvent evt) {                                          
  
      if (plus == true )
      {
          input = Double.parseDouble(txtArea.getText());    
          total = input + total;        
      }
      else if (minus == true)
      {
          input = Double.parseDouble(txtArea.getText());        
          total = input - total;
      }
      else if (multi == true)
      {
          input = Double.parseDouble(txtArea.getText());        
          total = input * total;
      }
      else if (division == true)
      {
          input = Double.parseDouble(txtArea.getText());        
          total = input / total;
      } 
      else
      {
      }
  
      txtArea.setText("" +total);
  
  
  } 
  </code></pre>