Algorithms and OOD (CSC 207 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [Learning Outcomes] [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Student-Curated Resources] [Java 8 API] [Java 8 Tutorials] [Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2014S (Rebelsky)] [CSC 207 2014F (Walker)] [CSC 207 2011S (Weinman)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Continue lab partners.
Overview
SimpleList interface (see today's lab for details).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