So for a question in my university we have been asked to implement Petersons solution to this Java program and it has been stated we may only add a few variables and not dra