CS49J Lesson 12 – ArrayLists

Ch 7: 7.7

Big Java 6

When you come in

  1. Connect to the Internet
  2. Log in to Piazza
  3. Start Eclipse or your IDE
  4. Navigate to laughton.com/obrien/sjsu/
    cs49j/lessons and open this lesson

Questions

Concept: Declaring an ArrayList

Concept: Adding to an ArrayList

Concept: More ArrayList methods

Concept: Enhanced for loop

Activity - Using an ArrayList

Record your participation in Piazza clicker question Lesson12 Q1

  1. [rose, violet, pansy, zinnia]
  2. [Rose, Violet, Pansy, Lavender, Zinnia]
  3. [Rose, Pansy, Lavender, Zinnia]
  4. [Rose, Violet, Pansy, Lavender]

 

Activity - ArrayList of objects: sum

Record your participation in Piazza clicker question Lesson12 Q2

  1. Got it
  2. Got it but it was hard
  3. Couldn't do it in the time allowed
  4. Didn't know where to start

 

Activity - ArrayList of objects: average

Record your participation in Piazza clicker question Lesson12 Q3

  1. Got it
  2. Got it but it was hard
  3. Couldn't do it in the time allowed
  4. Didn't know where to start

 

Activity - ArrayList of objects: Largest

Record your participation in Piazza clicker question Lesson12 Q4

  1. Got it
  2. Got it but it was hard
  3. Couldn't do it in the time allowed
  4. Didn't know where to start

 

Activity - ArrayList of objects: find all matches

Record your participation in Piazza clicker question Lesson12 Q5

  1. Got it
  2. Got it but it was hard
  3. Couldn't do it in the time allowed
  4. Didn't know where to start

 

 

Activity - ArrayList of objects: find first match

Record your participation in Piazza clicker question Lesson12 Q6

  1. Got it
  2. Got it but it was hard
  3. Couldn't do it in the time allowed
  4. Didn't know where to start