** Math类 ** 包:java.lang 常用方法: Math类所有方法都是静态方法(无关对象,而是类),所以使用该类中的方法时,可以直接使用类名.方法名 例如:Math.round(); 例子: 结果: 摘自慕课