摘要: public class MathDemo { public static void main(String[] args) { double x=12.2; //取绝对值 System.out.println(Math.abs(-99)); //向上取整 System.out.println(Math.c... 阅读全文
posted @ 2018-05-26 19:36 张锐0328 阅读(156) 评论(0) 推荐(0)
摘要: System常用方法: System类不能手动创建对象,因为构造方法被private修饰,阻止外界创建对象。System类中的都是static方法,类名访问即可。在JDK中,有许多这样的类。 阅读全文
posted @ 2018-05-26 11:41 张锐0328 阅读(131) 评论(0) 推荐(0)