Changing the joint in the drive shaft ?

What is the best way to change the joint in the drive shaft ?