Ch. 13 Lecture Notes - arrays & ArrayList & foreach loops
Array Demos
array demo #1 - adding int values in an array and computing the average
array demo #2 - linear search finding a specific value in
an array of int's
array demo #3 - linear search through an array implemented as a static method
array demo #4 - aliasing an array versus using arraycopy
to create a true copy of an array
array demo #5 & a Student class - an array as a property of a Student class
two-dimensional array demo #1 - a two-dimensional array & sums & averages of its rows & columns
two-dimensional array demo #2 - a Matrix class multiply method that works with two-dimensional arrays
ArrayList Demos
ArrayList demo #1 - adding Integer values in an ArrayList & using a for each loop
ArrayList demo #2 - ArrayList algorithms
including sequential search and counting using author's Coin & Purse classes
Worksheets
ArrayList Worksheet #1 - tracing code that uses ArrayList's
ArrayList Worksheet #2 - writing code that uses ArrayList's
Array Worksheet #1 - tracing code that uses arrays
Array Worksheet #2 - writing code that uses arrays
Array Worksheet #3 - writing code that uses arrays
Array Worksheet #4 - writing code that uses arrays
Array / ArrayList Multiple Choice Worksheet #1 (see instructor)
Array / ArrayList Multiple Choice Worksheet #2 (see instructor)
Array / ArrayList Multiple Choice Worksheet #3 (see instructor)
Projects
Ch. 13 Project #1 - Tic Tac Toe using two-dimensional array
Ch. 13 Project #2 - APExam's & APStudent's that includes use of ArrayList's
Ch. 13 Project #3 - Dictionary class that includes the use of ArrayList's