Arrays: Worksheet #1

Array Initializers. 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 = ... The program declares scores as an array of int type in order to store the students’ scores after the user enters the number of students into numOfStudents. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download