Classes have constructors. Arrays don't have constructors.
See the tutorial:
Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)...
Type: Posts; User: Norm
Classes have constructors. Arrays don't have constructors.
See the tutorial:
Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)...
Once the method has a reference to the array, it can store values in the array.
pass the array to the method as an argument and then use normal array accessing techniques to change values in the array.