search for: javagetarrayelement

Displaying 1 result from an estimated 1 matches for "javagetarrayelement".

2004 May 26
0
an SJava array question
..., dim=3), 1) .JavaSetArrayElement(a, .JavaArrayConstructor("int", dim=3), 2) .JavaSetArrayElement(a, .JavaArrayConstructor("int", dim=3), 3) for (i in 1:3) { for (j in 1:3) { .JavaSetArrayElement(a, as.integer(i*j), i,j) } } print(.JavaGetArrayElement(a, 1,1)) } I expect that I should see 1 print out but instead I get [[1]] [1] 1 2 3 [[2]] [1] 1 2 3 The SJava manual seems to indicate that .JavaGetArrayElement(a, 1,1) gives the first element of the first array. Could anybody throw some light on this? A related question is the an array of...