Get method: Array class

Syntax

Get(index)

Description

Use the Get method to return the index element of an array. This method is used with the Java PeopleCode functions, instead of using subscripts (which aren't available in Java.)

Using this method is the same as using a subscript to return an item of an array. In the following example, the two lines of code are identical:

&Value = &MyArray[8];
&value = &MyArray.Get(8);

Parameters

Parameter Description

index

The array element to be accessed.

Returns

An element in an array.