com.xu.base.Demo09

package com.xu.base;

public class Demo09 {
//修饰符,不存在先后顺序 如:static、public
static final double PI=3.14;

public static void main(String[] args) {
System.out.println(PI);//3.14

}
}

\Desktop\JavaSE\out\production\基础语法" com.xu.base.Demo09
3.14

Process finished with exit code 0

上一篇:python知识


下一篇:rs