TopNumeric types and Conditionals

Numeric types and Conditionals

Class Examples:

  1. Here's an example that we started last time that demonstrates the use of accessor methods: Click on CrossHairs to show the example.

  2. Here's an example that makes use of an integer variable, and that demonstrates the "+" operator on combinations of strings and numbers: Click on ClickCounter to show the example.

  3. The onMouseMove method of the following program provides even more complex examples of displaying strings and numbers, and also demonstrates the use of constants. Click on MouseMeter to show the example.

  4. Basketball: The first attempt: Click on Basketball to show the example.

TopNumeric types and Conditionals