New Problem

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.

Answer:

No. PC Paint, or a similar drawing tool would be better. It is much easier to create a picture with a painting program than by progamming.

New Problem

Usually you would not use Java to draw a static picture. Java is used when the picture changes in response to user interaction, or is dynamically created based on ever-changing data.

For example, an interactive game might be written in Java. Perhaps the house and landscape are the background and the characters of the game move across the screen.

Sometimes a picture contains many elements that can be computed by a program, but are too numerous for a human to specify individually. The next example is an example of this.

QUESTION 9:

How could you draw ten red circles across the drawing area?