Formatting Code to fit Java coding standards