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.

created 08/10/08


Chapter 70 Exercises


Exercise 1

Think of a recursive way to fold a square sheet of paper so that the creases make 64 little squares.

Exercise 2

Describe with recursion how to stir a can of paint until the paint is thoroughly blended.

Exercise 3

Describe with recursion how to read a 1000 page book.

Exercise 4

Describe with recursion how to sit through a boring 60 minute lecture.

Exercise 5

Describe with recursion how to dig a ditch that is big enough to bury an elephant.

Exercise 6

Describe with recursion how to wax your car until every surface gleams.

Exercise 7

Describe with recursion how to visit every exhibit in a zoo.

Exercise 8

Describe with recursion how to drink all the beverage in a liter bottle of grape soda.

Exercise 9

Describe with recursion how to play one hole of golf (how to move the ball from the tee to the hole).

Exercise 10

Describe with recursion how to work every problem in a list of problems.

Click here to go back to the main menu.


End of Exercises