Computer Science 132
Introduction To Computing II

Dickinson College
Fall Semester 2002
Grant Braught

Week 12: 1D Arrays & 2D Arrays


Reading Assignments

Homework Assignments

    Due: 11/22/02

  1. Monday:
    1. Computing Concepts - Review Exercises 13.12.
        NOTE: Answer 13.12 by writing the following static methods in a class named ReviewEx12:
        1. boolean arrayEquals(int[] x, int[] y): which returns true if the arrays x and y contain the same values in the same order, and false otherwise.
        2. double[] arrayCopy(double[] x): which returns a new array which is a copy of the array x.
        3. void zeroArray(double[] x): which fills the array x with zeros.
        4. void removeAll(ArrayList a): which removes all of the elements from the ArrayList a.
  2. Wednesday:
    1. Computing Concepts - Review Exercises 13.13, 13.14.
        NOTE: In addition to declaring each statement to be true or false, write 1 sentence explaining your answer.

Vocabulary

Lab Assignment

Related Web Sites

Sample Code