The Java Array type as class / Java Array type methods |
Creates a new Java array of the given type.
java-array-type.create( size INTEGER ) RETURNING object java-array-type
This class method creates a new instance of the Java array specified by the type used, with the size provided as parameter.
The type must be declared as a user defined type define with the ARRAY [ ] OF notation reserved for Java arrays.
IMPORT JAVA java.lang.String MAIN TYPE string_array_type ARRAY[] OF java.lang.String DEFINE names string_array_type LET names = string_array_type.create(100) LET names[1] = "aaaaaaa" DISPLAY names[1] END MAIN