Algorithms and OOD (CSC 207 2014F) : EBoards

CSC207.01 2014F, Class 31: Implementing Lists with Arrays


Continue lab partners.

Overview

Preliminaries

Admin

Upcoming Work

Extra Credit

Academic

Peer Support

Questions

Quick Review of Readings

What did you learn from "Lists with Current Considered Harmful"?

Are there questions on the "Designing List ADTs" reading?

What's going on with the "enhanced for loop" (aka "for each")

    for (TYPE VAR : ITERABLE)
      BODY

It's a shorthand for

    Iterator<TYPE> tmp = ITERABLE.iterator();
    while (tmp.hasNext())
      {
        VAR = tmp.next();
        BODY;
      } // while

Lab