CS 101 Lecture 5 - Primitive Types

Class Examples:

  1. A Pong game that keeps the paddle on the playing court.

    Click on Pong to show the example.

  2. Let's improve our basketball game even more by adding a boolean variable that keeps track of whether the player is carrying the ball.

    Click on EvenBetterBasketball to show the example.

  3. Let's do some simple tests for equality.

    Click on Test to show the example.