Java: Call subclass out of another subclass
<p>How can I call a subclass out of another subclass, if the first class was initialized in the main class? It's something like that:</p>

<pre><code>public class main {
    Sub1 test = new Sub1();
    Sub2 test2 = new Sub2();
    Sub2.bummer2();
}
</code></pre>

<p>Subclass 1:</p>

<pre><code>public class Sub1 {
    public static void bummer() {
        System.out.println("got called");
    }
}
</code></pre>

<p>The other subclass:</p>

<pre><code>public class Sub2 {
    public static void bummer2() {
        //here i want to execute Sub1.bummer() without having to initialise it first
    }
} 
</code></pre>

<p>How can I do that?</p>
