Listing 4. Source code for the program named ArrayErr01.
  public void main ( ) {
    Number[] anArray = ; Number data = 0 ; Number moreData = 10 ;
       // Store literal value in anArray[0]
  anArray [ 0 ] = 2 ;
  data .set( value , ( anArray [ 0 ] ) );
  print( ( data .toString() ) );
  // Store variable's value in anArray[1]
  // The following statement causes a runtime error.
  anArray [ 1 ] = moreData ;
  }