加static修饰符可以在psvm前,如下(去掉static修饰符放里面也可)
static final double PI = 3.14; public static void main(String[] args) { System.out.println(PI); }