public String get ( int index ) { if ( index >= size ) throw new IllegalArgumentException ( ErddapString2 . ERROR + " in StringArray.get: index (" + index + ") >= size (" + size + ")." ) ; return array [ index ] ; }
This gets a specified element .