There are two separate programs. one solve the problem, and the other allows the player to play the peggame. The "crackerBarrel" program is not formatted as a triangle using terminal:
To compile the "crackerBarrel.java" use the commands below : javac crackerBarrel.java java crackerBarrel
To compile the "CrackerBarrel.java" use the commands below javac CrackerBarrel.java java CrackerBarrel Note: one of them has a lower case c and the other upper case