JAVA琐碎笔记

java获取内存使用状况 Runtime.getRuntime().totalMemory() Runtime.getRuntime().freeMemory() Random rand=new Random(47);//47指种子,相同的种子产生相同的随机序列,默认种子为当前时间 int i=random.nextInt(100);//100指随机数上限,下限默认为0 Integer.toBin
相关文章
相关标签/搜索