Navigation

Operators and Keywords

Function List:

C++ API

: jary = javaArray (classname, sz)
: jary = javaArray (classname, m, n, …)

Create a Java array of size sz with elements of class classname.

classname may be a Java object representing a class or a string containing the fully qualified class name. The size of the object may also be specified with individual integer arguments m, n, etc.

The generated array is uninitialized. All elements are set to null if classname is a reference type, or to a default value (usually 0) if classname is a primitive type.

Sample code:

jary = javaArray ("java.lang.String", 2, 2);
jary(1,1) = "Hello";

See also: javaObject.

Package: octave