Shouty exercise in Java