testfinal.java

来自「这是一张java应用教程的随书光盘」· Java 代码 · 共 18 行

JAVA
18
字号
final class Test{
	public static int totalNumber= 5 ;
	public final int id;
	public Test(){
		id = ++totalNumber;
	}
	public static void main(String[] args) {
		final Test t = new Test();
		final int i = 10;
		final int j;
		j = 20;
	    System.out.println("The member variable of the class is "+t.id);
		System.out.println("The value of the j is "+j);

	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?