If the L and S vectors are parallel and pointing in the same direction, then we add their values to obtain the magnitude of their sum, so J=2.
If the L and S vectors are parallel and pointing in the different directions, then we subtract their values to obtain the magnitude of their vectorial sum, so J=0.
The last, intermediate value will occur when L and S are perpendicular, thus for J=1.