?? fieldaccessexample.java
字號:
class Point {
public int x, y, z;
public String toString()
{
return("(" + x + ", " + y + ", " + z + ")");
}
}
public class FieldAccessExample {
public native void transformPoint(Point p);
static {
System.loadLibrary("FieldAccessLibrary");
}
public static void main(String args[])
{
FieldAccessExample fae = new FieldAccessExample();
Point p1 = new Point();
p1.x = 17;
p1.y = 20;
p1.z = 10;
System.out.println("The point before transformation: " + p1);
fae.transformPoint(p1);
System.out.println("The point after transformation: " + p1);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -