变量
public class Demo01 {
double money2=11.2;
static double money3=11.3;
public static void main(String[] args) {
double money1=11.1;
Demo01 demo01 = new Demo01();
System.out.println(money1);
System.out.println(demo01.money2);
System.out.println(money3);
}
}
常量 加一个final
final static double money=12.22;
static final double money=12.22;
两个一样