摘要: import java.util.Arrays; int[] arr = {60, 90, 56, 85, 28, 78, 89, 93, 49, 100}; //十个考试成绩 //准备一个3元素数组 int[] result = new int[3];//{0, 0, 0} //对数组内部进行快速 阅读全文
posted @ 2020-05-16 23:58 CherryYang 阅读(196) 评论(0) 推荐(0)
摘要: import java.math.BigInteger; BigInteger a = new BigInteger("893847367237384949488326178");//类的构造方法 因参数选用String类型 可使数的范围不受限制 BigInteger b = new BigInte 阅读全文
posted @ 2020-05-16 23:47 CherryYang 阅读(199) 评论(0) 推荐(0)
摘要: Integer类 两个静态成员变量 System.out.println("最大值"+Integer.MAX_VALUE);//最大值2147483647 System.out.println("最小值"+Integer.MIN_VALUE);//最小值-2147483648 三个静态方法 //十进 阅读全文
posted @ 2020-05-16 19:41 CherryYang 阅读(124) 评论(0) 推荐(0)
摘要: 基本数据类型 byte short int long boolean char float double 对应的包装类 Byte Short Integer Long Boolean Character Float Double 包装类的主要作用 将字符串 解析转化为 各种数据类型 各包装类都有的静 阅读全文
posted @ 2020-05-16 19:29 CherryYang 阅读(242) 评论(0) 推荐(0)