koi is error ka matlab smjha do.
program:
public class Array {
class array{
private int a;
public array(){
a = 10;
}
public void display(){
System.out.println(a);
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
array a = new array();
a.display();
}
}
error:
Exception in thread "main" java.lang.Error: Unresolved compilation
problem:
No enclosing instance of type Array is accessible. Must qualify the
allocation with an enclosing instance of type Array (e.g.
x.new A()
where x is an instance of Array).
at Array.main(Array.java:20)