⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thistest.java.bak

📁 Java就业的培训教程书籍
💻 BAK
字号:
public class thisTest{
	int r = 100,s,t;
	//r = 100;
	//s = 200;
	//t = 300;
	public static void main(String args[])
	{
		thisTest classObj = new thisTest();
		System.out.println("Values before calling method:");
		System.out.println("r = "+classObj.r+"   s = "+classObj.s+"   t = "+classObj.t);
		classObj.changeValue(400,500);
		System.out.println("Values after calling method:");
		System.out.println("r = "+classObj.r+"   s = "+classObj.s+"   t = "+classObj.t);
	}
	public void changeValue(int a,int b)
	{
		int r = 120;
		int s = 150;
		int t = 180;
		this.r = a;
		this.s = b;
		System.out.println("Values in calling method:");
		System.out.println("r = "+r+"   s = "+s+"   t = "+t);
	}
}

⌨️ 快捷键说明

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