title: int array and double array - difference
body: <p>What the difference between the <code>int</code> <strong>array</strong> and the new <code>double</code> <strong>array</strong> in the following code?</p>
  
  <pre><code>public class TestTwoReview {
      public static void main(String[] args) {
          int ducky[] = { 21, 16, 86, 21, 3 };
          int sum = 0;
  
          for (int counter = 0; counter &lt;ducky.length; counter++) {
              // adding all numbers in array
              sum += ducky[counter];
          }
  
          System.out.println("the sum of array is " + sum);
  
          double[] scores = new double[10];
          double total = 0;
          double average;
  
          for (int index = 0; index &lt; scores.length; index++)
              total += scores[index];
  
          average = total / scores.length;
          System.out.println("the average is " + average);
      }
  }
  </code></pre>