📄 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 + -