+ 2

Hello. How can I initiate an array via the constructor, please? Thanks for your help!!!

Java constructor

17th Jan 2021, 7:47 PM
Mackenson Réginald Michel
Mackenson Réginald Michel - avatar
4 Respuestas
+ 1
Thanks a lot
17th Jan 2021, 8:53 PM
Mackenson Réginald Michel
Mackenson Réginald Michel - avatar
+ 1
I know but I can't instantiate an object passing the values of an Array. I don't how to do that
18th Jan 2021, 9:27 AM
Mackenson Réginald Michel
Mackenson Réginald Michel - avatar
+ 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?
18th Jan 2021, 3:21 PM
bell
bell - avatar
0
Mackenson Réginald Michel Constructor is use to initialize anything.
18th Jan 2021, 3:45 AM
A͢J
A͢J - avatar