Chapter 37 Programming Exercises

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
Historical topic: Java appletsModern web browsers do not run Java applets. The Applet API was deprecated for removal before Java 25 and was removed in Java 26. Treat applet examples on this page as historical object-oriented/GUI examples; for new desktop interfaces use Swing where appropriate or JavaFX/OpenJFX.

created 01/22/00


Chapter 37 Programming Exercises

Exercise 1

Draw ten red circles in a vertical column in the center of the applet.

Click here to go back to the main menu.


Exercise 2

Draw 10 alternating red circles and blue squares in a line across the center of the applet.

Click here to go back to the main menu.


Exercise 3

Draw 10 concentric circles in the center of the applet.

Click here to go back to the main menu.


Exercise 4

Create a simple holiday card applet using simple graphics for the next holiday.

Click here to go back to the main menu.


End of the Exercises