While the Java programming language does indeed provide built-in support for arrays, that support is not without its shortcomings: Array indices range from zero to n-1, where n is the array length. There is no array assignment operator. The size of an array is fixed once allocated.
One way to address these deficiencies is to define a new class with the desired functionality. We do this by defining an Array class with two fields as shown in Program . The first is an array of Java Objects and the second is an int which records the lower bound for array indices.