Dividing in Half

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:

Divide the line in half.

Dividing in Half

Now you have two lines, each half as small as the original:

The problem "divide the line into 16 equal pieces" has been transformed into two smaller problems: "divide each of two lines into 8 equal pieces.

QUESTION 7:

How do you solve the smaller problems?