CS-151 Labs


Lab 1. The First Cup of Java

Due: Sunday, September 25, by 10:00 PM.

In the previous lab we explored the ways of passing user input to our programs through command-line arguments. In this lab we will investigate how we can get user input from the screen prompt and from a file.

After this lab, you should be able to:

Let’s get this programming party started! Unlike most of the remaining labs, this one will consist of a number of small programming assignments to help you to become more fluent with Java programming.

You will create the following Java files for this lab:

We provide you with the following input data files: