CS 111 - 11/18/14 Sounds Objects Volume increase - multiply by a some amount Combine two sounds together - Adding the two sound samples =================================== Arrays - sequence of similar data elements identified by the use of [] in java An array allows the program to store multiple values in a single variable name To declare an array, the java syntax is: int[] arrayName1; or int arrayName2[]; The above code does NOT specify the number of values in the array. To do this , we need the following arrayName1 = new int[100]; The above creates storage space in memory for 100 integers. int classSize = 135; int[] exam2Grades = new int[classSize]; To store a value into position 5; exam2Grades[5] = 97; To access a value: total = total + exam2Grades[10]; To print all values in an array: for (i = 0 ; i < classSize ; i++ ) System.out.println ("Grade: " + exam2Grades[i] );