Clearing Arrays

Clearing arrays is straightforward. Use the op-code CJAVA-CLEARARRAY and pass in the array handle of the array to be cleared, as shown:

CALL "C$JAVA" USING CJAVA-CLEARARRAY, ARRAY-HANDLE GIVING STATUS-VAL.