How do we modify the source of original Java classes?
<p>Hi all I was wondering if I could modify and recompile a Java base class?</p>

<p>I would like to add functions to existing classes and be able to call these functions.</p>

<p>For example, I would like to add a function to <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html" rel="nofollow">java.lang.String</a>, recompile it and use it for my project:</p>

<pre><code>public char[] getInternalValue(){
      return value;
}
</code></pre>

<p>I was wondering how do we go about doing that?</p>
