+ 2
Hello. How can I initiate an array via the constructor, please? Thanks for your help!!!
Java constructor
4 ответов
+ 1
Thanks a lot
+ 1
I know but I can't instantiate an object passing the values of an Array. I don't how to do that
+ 1
this might be the answer to the question I posted! i can instantiate a class passing values to fill an array? then refer in methods to this.arr[0].x?
0
Mackenson Réginald Michel
Constructor is use to initialize anything.