// 11/20/2019 /** print an array -- use a for loop * copy an array -- first allocate new memory and then use for loop * compare 2 arrays */ public class ArrayProcessing { public static void main(String[] args) { int[] numbers = {99, 97, 96, 99, 98, 97, 96}; // int[] sortedNums = {1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4}; // to print an array, loop and print each value for (int num : numbers) System.out.println(num); // I want a copy of the array in numbers2 // array assignment copies ADDRESSES, so you end up // with 2 names for the same array. Changes to numbers2 will // change numbers array and vice versa. int[] numbers2 = new int[numbers.length]; // allocates the array for (int i=0; i