everything is the title
java tutorial says:
OuterClass.InnerClass innerObject = outerObject.new InnerClass();
this doesn’t work for me:
public class aching{
class pixel{
public char c;
public int f;
}
public static void main(String[] args){
aching a = new aching();
aching.pixel[][] p = a.new pixel[1][1];
}
}
Just
It is when you need to create instance of pixel object, you’ll have to write:
Also, it is a good idea to follow common Java naming conventions, e.g. use upper case for class/type names.