title: How to print output in java
body: <p>I have this simple problem I'm trying to do. I'm trying to write a program that doubles these five numbers. Then I want to compute the average of these numbers and print them out. The code runs with no errors, but it will not print my answer for some reason. How can I get it to print the output of the problem or simply print something? I am using Netbeans.</p>
  
  <pre><code>/*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  package marina;
  
  /**
   *
   * @author bax
   */
  public class Precedence {
  
  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
      // TODO code application logic here
      double grade1 = 100;
      double grade2 = 75;
      double grade3 = 88;
      double grade4 = 65;
      double grade5 = 99;
      int x = (int) (grade1+grade2+grade3+grade4+grade5/5.0);
  
      System.out.println(x);   
  
      }
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>run:
  BUILD SUCCESSFUL (total time: 0 seconds)
  </code></pre>