JAVA瑣碎筆記

java獲取內存使用狀況 Runtime.getRuntime().totalMemory() Runtime.getRuntime().freeMemory() Random rand=new Random(47);//47指種子,相同的種子產生相同的隨機序列,默認種子爲當前時間 int i=random.nextInt(100);//100指隨機數上限,下限默認爲0 Integer.toBin
相關文章
相關標籤/搜索