This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Looking for information about arrays of objects ?



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
*******************************************************************


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]