Pounding a Rock to Dust

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.
go to previous page   go to home page   hear noise   go to next page

Answer:

You may destroy the rock by pounding it with a hammer.

Pounding a Rock to Dust

You have a rock. You have a hammer. The size of the problem "destroy the rock" may be made smaller by applying the hammer to the rock.

Click on the Image to Apply Recursion

After applying the hammer, you now have several smaller problems. Each of these smaller problems may be solved by applying the hammer.

QUESTION 5:

When do you stop applying the hammer?