Shelby Simpson wrote:When I create an array like this - private int[] someArray = new int[24]; what class of array am I calling?
To find out the class of an object, use the getClass() method. You will find that you are creating neither an "Array" or "Arrays" object.
This prints out "class [I". Similarly, [B is the class of the byte array, [C is the class of the char array, etc.
Shelby Simpson wrote:In looking at the java API I can see that there is an Array class and an Arrays class.
Oracle's website explains that these classes "contain various methods for manipulating arrays." To use the methods of these classes with your array, you must make a static reference to the class and pass in your existing array. For example: