How do I create an instance of a static private inner class with a public constructor?
public class outerClass<E> {
private static class innerClass<E> {
E value;
public innerClass(E e) {
value = e;
}
}}
I've tried this and it gives an error that the out package does not exist
outerClass<Integer> out = new outerClass<Integer>();
out.innerClass<Integer> = new out.innerClass<Integer>(1);
I've tried this and it gives an error that the inner class is private and can't be accessed.
outerClass<Integer>.innerClass<Integer> = new
outerClass<Integer>.innerClass<Integer>(1)