What would be wrong with adding the following statement to Figure 7.24s main method? PennyJar.addPenny(); Figure 7.24

Question:

What would be wrong with adding the following statement to Figure 7.24’s main method?

PennyJar.addPenny();

Figure 7.24

/****** * Penny Jar Driver.java *Dean & Dean * *This class drives the Penny Jar class. *** public class Penny

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: