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:
433 bytes
|
Line | |
---|
1 | // Test case from Martin Kahlert <martin.kahlert@infineon.com>
|
---|
2 |
|
---|
3 | public class martin {
|
---|
4 | public native void myNative(String s);
|
---|
5 |
|
---|
6 | public void myJava(String s) {
|
---|
7 | s = s + ", Java";
|
---|
8 | System.out.println(s);
|
---|
9 | }
|
---|
10 |
|
---|
11 | public static void main(String args[]) {
|
---|
12 | martin x = new martin();
|
---|
13 | x.myJava("Hello");
|
---|
14 | x.myNative("Hello, Java (from C)");
|
---|
15 | x.myJava("Goodbye");
|
---|
16 | }
|
---|
17 |
|
---|
18 | static {
|
---|
19 | System.loadLibrary("martin");
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.