The program below is the solution to Liang’s Introduction to Java Programming (9th Edition) Chapter 2 Exercise 2.26.

Question: Rewrite Listing 2.10, ComputeChange.java, using input and output dialog boxes.

Exercise 2.26 solution - Java change calculator
Program output

Click here to see other solutions to Introduction to Java Programming.