what the difference between the int array and the new double array? : /*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package testtworeview;

/**
 *
 * @author mbest
 */
public class TestTwoReview {// && means both need to be true

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("//Personal example //////////////////////////////");
      
    // can be used for averages
        int ducky[]={21,16,86,21,3};
        int sum = 0;
        
        for(int counter = 0; counter<ducky.length;counter++){
            sum+= ducky[counter];// adding all numbers in array
        }
        System.out.println("the sum of array is " + sum);
        
        double[] scores = new double[10];
        double total = 0; // Initialize accumulator
        double average; // Will hold the average
        for (int index = 0; index < scores.length; index++)
        total += scores[index];
        average = total / scores.length;
        System.out.println("the average is " + average);
    }
        
       
        }
}