-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.java
More file actions
30 lines (26 loc) · 683 Bytes
/
Copy pathtest.java
File metadata and controls
30 lines (26 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
@copyright Russell Standish 2000-2013
@author Russell Standish
This file is part of Classdesc
Open source licensed under the MIT license. See LICENSE for details.
*/
class test
{
public static void main(String[] arg)
{
System.loadLibrary("JNIEx2");
Example foo=new Example();
assert foo.foo(1)==1;
foo.printFoo();
foo.setFoo(2);
assert foo.getFoo()==2;
foo.printFoo();
System.out.printf("%d\n",foo.getFoo());
System.out.printf("%g\n",foo.bar(3));
assert foo.bar(3)==3;
foo.printBar();
foo.setBar(4);
assert foo.getBar()==4;
foo.printBar();
}
}