Answer the question
In order to leave comments, you need to log in
Is it possible to create an array of objects in java?
I need to enter the n-th number of points, or rather their coordinates. I created a class Dot, it has 3 fields x,y,z. Is it possible to create an array from objects of class Dot. That is, Dot dot[] = new Dot[0]. And how can I then add x,y,z values to these objects. Because it is not possible to add it through the constructor.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question