摘要:
package com.oop; import com.oop.demo03.Pet; public class Application { public static void main(String[] args) { Pet dog = new Pet(); dog.name = "旺财"; 阅读全文
摘要:
System.out.printIn() 类.方法.对象 public static void main() public 修饰符 static 类变量 void 返回值类型 void代表不返回东西 main 方法名 package com.xiaojie.method; public class 阅读全文
摘要:
package com.xiaojie.struct; public class WhileDemo03 { public static void main(String[] args) { //计算1+2+3+..+100=? int i = 0; int sum = 0; while (i<=1 阅读全文
摘要:
package operator; public class Demo01 { public static void main(String[] args) { //二元运算符 int a = 10; int b = 20; int c = 30; int d = 40; System.out.pr 阅读全文