CS-151 Labs


Lab 2. Object-Oriented Programming


In this lab, you will be spending more time working with Java.

After this lab, you should be able to:

We provide you with some starter code: starter2.zip. Download the archive now and unzip the files into cs151/starter2 directory.

In this folder you find three Java classes:

The last two files should remain unchanged. You would need to add code to CollectionsTest.java.

You will create the following new Java files:

Before you begin, please create a new folder lab2 in your cs151 directory. You will store your entire Eclipse project in this directory.

Let’s get started with a warmup!