title: Average of an array showing 1
body: <p>I have a program where the user inputs marks into the array and then gets the average value</p>
  
  <p>This is using Jcreator</p>
  
  <p>My problem is that when I ask for the average on my program,it says that the average is 1</p>
  
  <p>This is my code :</p>
  
  
  
  <pre><code>//averageEnglish
  public void averageEnglish() 
  {
  
    System.out.println("The Average Mark Of English Is");
    int averageEnglish = english.length / 10;
    System.out.println("-----------");
    System.out.println(averageEnglish);
    System.out.println("-----------");
  
  }//End of averageEnglish
  </code></pre>
  
  <p>English is an int array</p>
  
  <pre><code>int[] english = new int [10];
  </code></pre>
  
  <p>averageEnglish is a variable</p>
  
  <pre><code>int averageEnglish;
  </code></pre>