IT 114: Introduction to Java
Class 25

Topics

Review

New Material

Homework 8

Homework 8 is due this Sunday at 11:59 PM.

You will find the assignment here.

If you have a problem or a question, make a post on the Class Discussion Area.

Review

Storing Values Read from a File

ArrayLists

Creating an ArrayList Object

Loading Values into an ArrayList

Looping Through an ArrayList

Classes for Primitive Values

Creating an ArrayList from a File

Being a Good Citizen

New Material

Other ArrayList Methods

The add(value) Method

The add(index, value) Method

The clear() Method

The get(index) Method

The remove(index) Method

The set(index, value) Method

The size() Method

ArrayList Search Methods

The contains(value) Method

indexOf(value) Method

lastIndexOf(value) Method

Writing a Method to Read in Files

Reading a File of Numbers

Stopping Execution of a Loop

The break Statement

The continue Statement

The switch Statement

Do Not Leave Out break in a switch Statement

Class Quiz

Attendance

Class Exercise