摘要:
public class Test{ public static void main(String[] args){ System.out.println("声明定义一个公开的类,起个名字叫Test2"); }} //不行删去“一个”. 阅读全文
posted @ 2021-08-26 22:49
沉默的言兴与誉
阅读(200)
评论(0)
推荐(0)
摘要:
public class E{ //这里的static必须加,别问为什么! //变量还是遵守这个语法:必须先声明,再赋值,才能访问。 //成员变量没有手动赋值系统会默认赋值【局部变量不会】 static int k = 1000; static int f;//成员变量 public static 阅读全文
posted @ 2021-08-26 14:50
沉默的言兴与誉
阅读(40)
评论(0)
推荐(0)

浙公网安备 33010602011771号