Proper java formatting