This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Looking for information about arrays of objects ?
- To: java-discuss@sourceware.cygnus.com
- Subject: Looking for information about arrays of objects ?
- From: Eric Gamess <egamess@kanaima.ciens.ucv.ve>
- Date: Fri, 3 Sep 1999 16:06:28 -0700 (PDT)
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
*******************************************************************