This is a program for two players to play basketball. It improves on the BBall4One program by supporting a second player. It also demonstrates how a non-primitive variable refers to the exact object to which it was assigned.

Note: This demo requires a Java enabled browser. If you see this message then your browser either doesn't support Java or has had Java disabled.

Click below to download the source files for BBall4Two.