Array

What Is an Array? An array is a fixed-size, ordered collection of values that all share the same data type . Instead of declaring score1, score2, score3, you store every score in one array and refer to each by position. Declaration Syntax. In Java you declare

8 lessons, each with runnable code in the browser.

  1. Declaring and Creating Arrays
  2. Indexing and Modifying Elements
  3. Array Length and the Standard for Loop
  4. The Enhanced for Loop
  5. Finding Maximum and Minimum
  6. Linear Search
  7. Out-of-Bounds Errors
  8. Combining Array Algorithms

Compilearn home