Mon: Go over Technews assignment. No Technews next week!
myNums = new int[10];
myNums = { 0,1,2,... };
myNums[3] = 255;
for (int i=0; i<myNums.length; i++) myNums[i] = 10;
Arrays.fill(myNums,10);
int[] myNums2 = myNums; // does not make a copy!!
for (int element: myNums) sum = sum + element;
// don't use to modify the array element values!
Examples:
In Lab:
Follow the instructions: Lab 9: Arrays