everything is a nameThe java textbook says:
OuterClass.InnerClass innerObject = externalObject.new InnerClass ();
this does not 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]; } }
Simply
pixel[][] p = new pixel[1][1];
When you need to instantiate a pixel object, you will need to write:
p[0][0] = a.new pixel();
Also, it's nice to follow general Java naming conventions, for example. use uppercase for type / type names.
There should be something like this:
public static void main(String[] args){ pixel p[][] = new pixel[1][1]; }
Next, follow the convention, your class names should start with a capital letter.
Source: https://habr.com/ru/post/1770960/More articles:How to list nested counters - linqPHP5 Class Scope - oopDetect when column size changes in gtk.treeview - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1770958/add-gtktreeview-columns-to-a-size-group&usg=ALkJrhj4pZDJFfiKaNZbPBKzdHWRB62WdAС++ шаблоны без "typename" или "class" - c++Вопросы о многопоточности - multithreadinggame search tree, do i need to create a tree first? - searchHow to create my first Grails project in IntelliJ with Maven? - intellij-ideaPiwik: creating a countable image to display it on external sites - phpReturns a collection of objects from a bitmask - c #All Articles