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:
- use Java arrays;
- write performance tests;
- write object-oriented programs;
- extend an abstract class.
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:
CollectionsTest.javaFighter.javaFightDriver.java
The last two files should remain unchanged.
You would need to add code to CollectionsTest.java.
You will create the following new Java files:
Pyro.javaKickyPunchy.javaFightingSquirrel.javaBenford.java
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!