Array of Primitives

When creating an array of primitives, the third step does not include using new because primitives are not created with new and do not have constructors. The third step is just to set the values.
  1. Declare the reference, or array variable.
     int	nums[]; 
  2. Allocate the slots for the array with new.
     nums = new int[26]; 
    Note that we are using new to allocate the slots in the array. We are not using new to create integers.

  3. Set the elements, using an assignment statement.
     nums[0] = 7; 

Here's a picture. Compare it to our picture of the TestScore array:

No arrows in the small boxes. Arrow from box 0 pointing to a box that is a Point.