Utility methods with return values

Change your Utility.java file so that all methods except main() return a value instead of printing inside the method. The printing should be done in the main value. Upload your new Utility.java file only.

Note that your program should basically work the same way as it did previously. You are just restructuring (or refactoring) the program.

This material was created by Raffi Khatchadourian and published freely under a Creative Commons Attribution 4.0 license.