How to make instance with same name class in java
<p>I want to create an instance of class <code>B</code>, not being <code>B</code> <code>A</code>'s inner class.</p>

<p>How can I achieve it? I don't want to change the class name <code>B</code> for both classes.</p>

<pre><code>public class Sample {
    public static void main(String[] args) {
        A a = new A();
        a.show();
    }
}

class A {
    class B {
        public void show() {
            System.out.println("hello");
        }
    }

    public void show() {
        B b = new B();
        b.show();
    }
}

class B {
    public void show() {
        System.out.println("hellohello");
    }
}
</code></pre>
