title: How to read the value of a private field from a different class in Java?
body: <p>I have a poorly designed class in a 3rd-party <code>JAR</code> and I need to access one of its <strong>private</strong> fields. For example,
  why should I need to choose private field is it necessary?</p>
  
  <pre><code>class IWasDesignedPoorly {
      private Hashtable stuffIWant;
  }
  
  IWasDesignedPoorly obj = ...;
  </code></pre>
  
  <p>How can I use reflection to get the value of <code>stuffIWant</code>?</p>