Looking for information about arrays of objects ?
Eric Gamess
egamess@kanaima.ciens.ucv.ve
Fri Sep 3 12:59:00 GMT 1999
Hello,
I am trying to do CNI methods that receive and return arrays of objects.
There is little information about it.
Suppose I have the following class:
//////////////////// MyInteger.java ///////////////////
class MyInteger
{
int value;
static native MyInteger[] add(MyInteger a[], MyInteger b[]);
// More and more
}
////////////////////////////////////////////
The method ``add'' does the sum of the 2 vectors and return the result.
Can someone give the CNI code of static method ``add'' please, with
enougth comments to understand it ?
Thank you very much.
Eric.
*******************************************************************
Eric Gamess
Universidad Central de Venezuela
Postgrado de Ciencias de la Computacion
Caracas, Venezuela
E-mail: egamess@kanaima.ciens.ucv.ve
Tel: 605-22-93
*******************************************************************
More information about the Java
mailing list