import static java.lang.Math.random; import static java.lang.Math.PI; public void main(String[] args) { System.out.println(random()); System.out.println(PI); }
final断子绝孙是常量修饰符,其修饰的类 不能被继承
static关键字详解
原文:https://www.cnblogs.com/markDownStudy/p/14928495.html