scope3.java

来自「java 教程源码」· Java 代码 · 共 20 行

JAVA
20
字号
//c4:Scope3.java
//author:ZhangHongbin 
//This program is protected by copyright laws.
//Variables in method and in class.
public class Scope3
{
	int x=1;
	void m()
	{
		int x=2;
		System.out.println("x= "+x);
		//System.out.println("x in class= "+this.x);
	}
	public static void main(String[] args) 
	{
		Scope3 vt = new Scope3();
		vt.m();
	}
}

⌨️ 快捷键说明

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