CHAPTER 71 — Recursion in Java

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: 12/25/02

CHAPTER 71 — Recursion in Java

This chapter discusses how to write Java programs that use recursion.

Chapter Topics:

  • Triangle Numbers
  • Recursive Java method that computes triangle numbers
  • Base cases
  • Static and Dynamic view of recursion
  • Activation chain

QUESTION 1:

How many bowling pins are used in the game Ten Pins?