Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
269 bytes
|
Line | |
---|
1 | // Test a simple static function with an `int' argument.
|
---|
2 |
|
---|
3 | public class simple_int
|
---|
4 | {
|
---|
5 | public static native int nat (int z);
|
---|
6 |
|
---|
7 | static
|
---|
8 | {
|
---|
9 | System.loadLibrary ("simple_int");
|
---|
10 | }
|
---|
11 |
|
---|
12 | public static void main (String[] args)
|
---|
13 | {
|
---|
14 | System.out.println (nat (23));
|
---|
15 | }
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.