Methods for Detecting Exoplanets