Chapter 3: Control Statements

Java has a shorthand notation, known as the array initializer that combines declaring an array, creating an array and initializing in one statement: double[] myList = ... A foreach loop is an enhanced for loop, which enables you to traverse the complete array sequentially without using an index variable. ................
................