摘要:
代码简介 package array; public class demo_1 { public static void main(String[] args) { int[] num = {1,2,3,4,5}; //打印数组里每一个数 for (int i=0;i<num.length;i++) 阅读全文
摘要:
1.自增、自减运算符+运算函数Math public class operator { public static void main(String[] args) { int a = 1; int b = a++;//此时 b = 1 先赋值后运算 int c = ++a;//此时 b = 3 先 阅读全文
摘要:
public class demo{ //类变量 用static static double salary = 99.8; //属性,变量{一个类中有属性+方法} //实例变量,从属于对象。可以不需要初始化 String name; int age; //main方法,程序入口 public sta 阅读全文