Added missing brackets to examples in Java Objects tutorial