JAVA学习笔记-常用类(四)——System,Math和工具类等

1.System类

static long currentTimeMillis()//返回当前时间(以毫秒为单位);

static gc();//垃圾回收;

static exit(int sate);//退出)

2.工具类:Arrays(常用工具类),Collections(集合的常用工具类)

Arrays,Collections里面有很多方法常用可以查看API文档自行了解

3.Math类

4.BigInteger(大数)和BigDecimal(精度很高的浮点数,多用特别精密的高精度计算)

猜你喜欢

转载自blog.csdn.net/m0_46450708/article/details/119618088
今日推荐