← Java Foundations

Week 6 — Arrays

May 4 – May 8  ·  6 lessons  ·  Array Statistics & Wordle labs

Objectives

  • Declare, allocate, and initialize arrays three different ways
  • Walk an array with the canonical for-loop and pick the right accumulator seed
  • Predict the effect of passing an array to a method (mutate-in-place vs. return-a-new-array)
  • Implement linear search and binary search, and choose between them given the input shape
  • Implement selection sort and insertion sort, and trace one outer pass on paper
  • Recognize the parallel-array anti-pattern and explain why classes (Week 8) fix it
  • Build a trace table for any array-mystery problem, including live writes and aliasing puzzles