2016年5月19日

Java System类看到的一点小记

摘要: System类 位置java.lang包中 是final类,不能被继承,不能被修改 ,不能被实例化 private System(){}私有的构造函数,不允许被其他对象进行实例化 public final static InputStream in = null; 标准化的输入流,这个流已经打开并且 阅读全文

posted @ 2016-05-19 15:07 wzyxidian 阅读(192) 评论(0) 推荐(0)

Java Random随机种子

摘要: 第一种情况 Random rand = new Random(47); for(int i=0;i<10;i++) System.out.println(rand.nextInt(100)); 第二种情况 Random rand = new Random(); for(int i=0;i<10;i+ 阅读全文

posted @ 2016-05-19 10:33 wzyxidian 阅读(1643) 评论(0) 推荐(0)

导航