Getting a value from a different class
<p>I have a main class named <code>main.java</code> and 3 classes in a package <code>f.java</code>, <code>graphics.java</code> and <code>image.java</code></p>

<p>I have a private int R in f.java, with <code>setR()</code> and <code>getR()</code> there</p>

<p>Now i need to get that value (from getR()) in <code>graphics.java</code></p>

<p>I need to get an interface linking those 2, or is just a cast problem?</p>

<p>Try to get me some code for graphics.java so i can get that value!</p>
