// // P.117 // initialization class TestArray1 { public static void main(String[]args) { int[] age = { 23, 10, 16, 23, 12}; int score[] = {89, 78, 90}; double[] num = {1.2, 2.4}; //Q: declare an array colleges that can hold "VWC", "UVA", "VT", "WMC"? String[] colleges = {"VWC", "UVA", "VT", "WMC"}; //Q: change "VT" to "ODU"? colleges[2] = "ODU"; // out "VWC" to monitor? System.out.println(colleges[0]); // invalid // out ALL for(int i=0; i<4; i++) System.out.print(colleges[i] + " "); System.out.println(); //age = 18; } }