title: How do I convert from the string representation of a class to an instance of the class?
body: <p>I have a string representation of a class's path. It could be any of three classes, all of which implement the same interface, <strong>Adapter</strong>, but I don't know what the value is.</p>
  
  <ul>
  <li>"com.example.adapters.Music" </li>
  <li>"com.example.adapters.Video"</li>
  <li>"com.example.adapters.Photo"</li>
  </ul>
  
  <p>Given only a variable holding one of the three strings above, how can I get a usable instance of the actual class? </p>