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

📄 2_04_030421217.java

📁 开始学JAVA老师布置的作业一学期的哦希望新手有用
💻 JAVA
字号:
class father
{   static int[] a1 =new int[]{3,0,0} ;
	static  void  output(int x)
	{
		System.out.println("hello"+x);
	}
	void plate()
	{
		this.output(father.a1[0]);
	}
}

public class Exer2_4 extends father
{   
	static int[] a2 = new int[]{2,0,0} ; 
	static int[] a3 = new int[]{1,0,0} ; 
	static  void  way1() {Exer2_4.output(Exer2_4.a2[0]);}
	static  void  way2() {Exer2_4.output(Exer2_4.a3[0]);}
	void way3() {this.way1();}
	void way4() {this.way2();}
	void way5() {}
	public static void main(String[] args)
	{
		Exer2_4 ex = new Exer2_4();
		ex.plate();
		ex.way3();
		ex.way4();
		
	}
}

⌨️ 快捷键说明

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