FileDocCategorySizeDatePackage
MyTest.javaAPI DocExample1147Tue Dec 12 18:58:26 GMT 2000None

MyTest

public class MyTest extends Object

Fields Summary
int
myInt
double
myDbl
float
myFlt
String
myString
Constructors Summary
public MyTest()


	/* constructor */
	 
		System.out.println("In constructor function");
	
Methods Summary
public native int[]createArray(int[] arr)

public native intcreateString(java.lang.String s, int len)

public voiddisplayHello()

	   System.out.println("Hello World! ");
	
public intdoCalc(int i, int n)

		int j;
		System.out.println("Start of doCalc; i= " + i);
		if (i==0) {
		   i = n;
		}
		for (j=1;j<5;j++) {
		   i = i + j;
		}
		System.out.println("Ready to exit doCalc; i= " + i);
		return(i);
	
public native intgetChar(java.lang.StringBuffer sb)

public native intgetInfo()

public native intgetIntValue(int[] arr, double[] darr)

public native intgetLine(java.lang.String s, int len)

public native inthandleError(int ivalue)

public native inthandleError2()