Exercises are key to treating strains and sprains and preventing future injuries. Once you've gotten the swelling down and the pain isn't as acute, several weeks of rehabilitation may be needed — possibly longer if your injury is severe. These exercises are for ankle sprains, hamstring strains and a couple of forms of tendinitis.