public static void main(String[] args) {
        ArrayList list;
        int length;
        double sum;
        double mean;
        boolean running = true;
        
        while(running){
            list = ordering();
            length = list.size();
            sum = 0;
            for(int j=0; j < length; j++){
                sum = sum + (double)list.get(j);
            }
            mean = sum/length;
            System.out.print(length + " terms"
            + "\nThe sum is " + sum
            + "\nThe mean is " + mean);
            System.out.println();
            for(int i = 0; i < length; i++){
                System.out.println(list.get(i));
            }
            System.out.println("If you would like to enter another list of numbers, "
                    + "Press c");
            String nextIn = scan.next();
            running = nextIn.equalsIgnoreCase("c");
        }
    }