+ 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
6 Answers
+ 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