title: How to access package-protected variable in class I cannot modify
body: <p>I have a variable that is in a package, where I can neither modify the package or that class and I need to access it is there any way I can do this. I can not modify com.archi.hello or the contents of it</p>
  
  <p>For Example: </p>
  
  <p>com.archi.hello: </p>
  
  <p>class obj:</p>
  
  <pre><code>public class obj () { 
      int j = 123;
      int getJ () {
          return j;
      } 
  }
  </code></pre>
  
  <p>com.archi.newpackage:</p>
  
  <pre><code>public class getJo () { 
      int jo;
      obj obj = new obj();
      jo = obj.getJ(); // THIS DOES NOT WORK BECAUSE THE GETTER IS NOT 
      PUBLIC 
  }
  </code></pre>
  
  <p>I need to set jo to j without modifying com.archi.hello in any way, and yes i have tried extending the obj. Is there anyway to do this?</p>