Class Lectures and Reading Assignments
CS 12300-01 (MW)
Programming I: Java
Fall, 2018

This page documents what we do in class. It contains Java programs that we will discuss in class, reading assignments, simple homework exercises that you can work on for practice and exam preparation (not for credit), and links to other sources of information. It is a good idea for you to "play" with the example Java programs; compile them, run them, make simple changes to them and compile and run them again.

Here is the example that we wrote in class today.

The final exam will be one week from today, on Monday, December 10.

Here is a summary of the final exam topics and some review/practice problems.

Read Sections 8.1, 8.2, and 8.3 (pages 531-555).

Do Self-Check Problems 15, 16, 17, 19, 20, 21 on pages 517-519 of the textbook (solutions are here).

Here is the example that we used in class today. It is similar to your homework assignment. There are two methods that increment an input array. One method directly increments the input array (in place) and the other method increments, and returns, a copy of the input array.

See the homework assignment page for your sixth (and last) assignment.

Read Section 7.2 (pages 465-479).

Read Section 7.3 (pages 479-483).

We will look at this example today.

Do Self-Check Problems 1, 3, 4, 5, 7, 10 on pages 516-517 of the textbook (solutions are here).

Do programming Exercise 1 from page 522.

Here are the examples that we wrote in class today.

Here are the example programs from Chapter 7 of the textbook.

Here are the examples that we wrote in class today.

Thanksgiving Break. No class.

I'm sorry, but I cannot come to class today. I must go to a funeral. So today's class is canceled.

Read Section 5.4 (pages 349-352).

Read Section 7.1 (pages 444-465).

Do Self-Check Problems 14, 17, 18, 19, 21, 22, 24, 25 on pages 375-379 of the textbook (solutions are here).

Do programming Exercise 13 from page 384.

Read Section 5.3 (pages 333-348).

Do Self-Check Problems 1, 2, 5, 10, 11, 12, 13 on pages 371-375 of the textbook (solutions are here).

Do programming Exercises 1 and 7 from pages 381 and 382.

Here are the example programs from Chapter 5 of the textbook.

The second midterm exam is today.

For next week, read Chapter 5, Sections 5.1 and 5.2 (pages 316-333).

See the homework assignment page for your fifth assignment.

Remember that the second midterm exam will be this Wednesday.

See the review material from last Monday.

Here are the examples that we wrote in class today.

Here are the examples that we wrote in class today.

The second midterm exam will be one week from Wednesday.

Here is a summary of the midterm exam topics and some review/practice problems.

I was given the following handout by the Student Academic Support office. This office is another campus resource for you to get help with this course (or your other courses).

Read Chapter 5, Sections 5.1 and 5.2 (pages 316-333).

Do Self-Check Problems 20, 21, 22, 23 on page 307 of the textbook (solutions are here).

Here are the examples that we wrote in class today.

Here are the examples that we wrote in class today.

See the homework assignment page for your fourth assignment.

Read Chapter 4, Sections 4.3 and 4.4 (pages 265-285).

Do Self-Check Problems 15, 17, 18, 19 on page 306 of the textbook (solutions are here).

Here are the examples that we wrote in class today.

Read Chapter 4, Section 4.2 (pages 254-265).

Here are the example programs from Chapter 4 of the textbook.

Do Self-Check Problems 1, 2, 4, 7, 8, 12, 13 on pages 301-305 of the textbook (solutions are here).

Solve these problems from the CodingBat web site.

Here is a file that shows some important nested if-else-statement patterns.

Here are the examples that we wrote in class today.

Read Chapter 4, Section 4.1 (pages 239-253).

Use the "Definitions Pane" in DrJava or the Java Visualizer to do Exercise 5 on page 191 of the textbook.

Today we will look at these examples.

Read Chapter 3, Section 3.4 (pages 173-181).

Do Self-Check Problems 19, 20, 21, 23, 24, 25, 26 on pages 188-189 of the textbook (solutions are here).

Use the "Definitions Pane" in DrJava or the Java Visualizer to do Exercise 4 on page 191 of the textbook.

Solve these "warmup" problems from the CodingBat web site.

Here is the example that we wrote in class today.

Fall Break. No class.

Here are the examples that we wrote in class today.

Do Self-Check Problems 8, 10, 12, 13, 14, 15, 16 on pages 185-187 of the textbook (solutions are here).

Read Chapter 3, Section 3.3 (pages 160-172).

Here are the example programs from Chapter 3 of the textbook.

Here is the example that we wrote in class today that improved an example from Chapter 2.

The first midterm exam is today.

For next week, read Sections 3.1 and 3.2 (pages 137-160) from the textbook.

Do Self-Check Problems 1, 2, 3, 4, 5 on pages 182-183 of the textbook (solutions are here).

Remember that the first midterm exam is on Wednesday. See the review sheet listed below.

Here are the examples that we wrote in class today.

Remember that the first midterm exam will be one week from today. See the review sheet listed below.

Here are the examples that we wrote in class today.

The first midterm exam will be one week from Wednesday.

Here is a summary of the midterm exam topics and some review/practice problems.

Here are more example programs for Sections 2.4 and 2.5.

Here are the examples that we did in class today.

See the homework assignment page for your third assignment.

Here are a few more example programs for Sections 2.3 and 2.4.

Use the "Definitions Pane" in DrJava or the Java Visualizer to do Exercises 8, 20 and 21 on pages 129-131 of the textbook.

Here are the examples that we did in class today.

For Wednesday, read Section 2.5 (pages 110-118).

Do Self-Check Problems 34, 35, 36 on pages 126-128 of the textbook (solutions are here).

For Monday, read Section 2.4 (pages 99-110).

Do Self-Check Problems 21, 22, 23, 28, 29, 30, 31, 32 on pages 123-126 of the textbook (solutions are here).

Use the "Definitions Pane" in DrJava or the Java Visualizer to do Exercise 2 on page 128 of the textbook.

Labor day. No class.

See the homework assignment page for your second assignment.

For Wednesday, read Section 2.3 (pages 89-99).

Do Self-Check Problems 5, 9, 10, 11, 17, 19, 20 on pages 120-123 of the textbook (solutions are here).

For Monday, read Chapter 2, Sections 2.1 and 2.2 (pages 64-89).

Here are the example programs from Chapter 2 of the textbook.

Do Self-Check Problems 21, 22, 23, 26, 29, 30, 32 on pages 50-54 of the textbook (solutions are here).

Use the "Definitions Pane" in DrJava to do Exercise 8 on page 55 of the textbook.

Be sure to look at the homework assignment page. Your first assignment is already listed there.

On your home computer, install the Java 8 JDK and DrJava as described in these instructions.

Here is a brief DrJava Primer

For today, read Chapter 1, Sections 1.1 - 1.3 (pages 1-28) from the textbook.

For Wednesday, read Sections 1.4 - 1.5 (pages 28-46) from the textbook.

Here are the example programs from Chapter 1 of the textbook.

Here is a simple program that helps demonstrate the difference between DrJava's "Definitions Pane" and "Interactions Pane".

Use the "Interactions Pane" in DrJava (or this web page) to do Self-Check Problems 10, 11 and 12 on page 48 of the textbook (solutions to the Self-Check Problems are here).

Do Self-Check Problems 18 and 19 on page 49 of the textbook.

Use the "Definitions Pane" in DrJava to do Exercise 1 on page 54 of the textbook.