How to put variable from constructor to method?
<p>I have code like this:</p>

<pre><code>public class Class1 {

    public void method1() {
        ...
        Class2 c = new Class2(i);
        ...
    }

    public Class1(int i) {
        ...
    }
}
</code></pre>

<p>How can I get variable i from constructor to method1 ?</p>
