<< jallowClassReloading JIMS jautoUnwrap >>

JIMS >> JIMS > jarray

jarray

Create a Java array

Calling Sequence

jarray(className, n_1 [, n_2 [, ...]])

Parameters

className

A string giving the class name

n_i

An integer giving the array dimension

Description

Creates a multidimensional array n_1x...xn_p of elements with type className. An array element can be accessed in using classical Scilab notations but take care that the index must stay between 0 and n_i (like in Java).

Examples

a = jarray("java.lang.String", 2, 2, 3);
// array insertion
a(0, 0, 2) = "Hi Jims !";
a(1, 0, 2) = "Hi Jims again !!"

// array extraction
length(a(1, 0, 2));
a(1, 0, 2)

Author


<< jallowClassReloading JIMS jautoUnwrap >>