摘要:
BigInteger适合保存比较大的整型 BigDecimal适合保存精度更高的浮点数 public class BigInteger01 { public static void main(String[] args) { //当编程中需要处理很大的整数,long不够用,可以使用bigIntege 阅读全文
posted @ 2023-04-06 00:39
、子夜
阅读(24)
评论(0)
推荐(0)
摘要:
System类 exit退出当前程序; arraycopy:复制数组,比较适合底层调用,一般使用Arrays.copyOf完成复制数组; currentTimeMillens:返回当前时间距离1970-1-1的毫秒数 gc运行垃圾回收机制 public class SystemMethod { pu 阅读全文
posted @ 2023-04-06 00:23
、子夜
阅读(16)
评论(0)
推荐(0)
摘要:
Arrays类 Arrays里面包含了一系列静态方法,用于管理和操作数组,比如排序和搜索; toString返回数组的字符串形式 sort排序(自然排序和定制排序) binarySearch通过二分搜索法进行查找,要求必须排好序 copyOf数组元素的复制 fill数组元素的填充 equals比较两 阅读全文
posted @ 2023-04-06 00:09
、子夜
阅读(13)
评论(0)
推荐(0)

浙公网安备 33010602011771号