上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
查看源码: HashSet底层new 了HashMap 哈希表的结构: Demo: Read More
posted @ 2018-12-20 09:50 SasaL Views(245) Comments(0) Diggs(0) Edit
package cn.sasa.demo1; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class ListDemo { public static void main(String[] args) { //Collec... Read More
posted @ 2018-12-19 15:23 SasaL Views(205) Comments(0) Diggs(0) Edit
package cn.sasa.demo1; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class ListDemo { public static void main(String[] args) { //泛型的通配符 ? ... Read More
posted @ 2018-12-19 14:21 SasaL Views(430) Comments(0) Diggs(0) Edit
package cn.sasa.demo1; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class CollectionDemo { public static void main(String[] args) { //Colle... Read More
posted @ 2018-12-18 10:17 SasaL Views(120) Comments(0) Diggs(0) Edit
这是ArrayList的继承树,它继承了AbstractCollection抽象类,AbstractCollection类实现了Collection接口,Collection接口继承Iterable接口 Read More
posted @ 2018-12-17 16:15 SasaL Views(855) Comments(0) Diggs(0) Edit
package cn.sasa.demo5; import java.math.BigDecimal; import java.math.BigInteger; public class BigDataDemo { public static void main(String[] args) { //BigInteger //数字太大,超过了long的... Read More
posted @ 2018-12-17 14:20 SasaL Views(456) Comments(0) Diggs(0) Edit
package cn.sasa.demo4; import java.util.Arrays; public class ArrayDemo { public static void main(String[] args) { int[] arr = {2,1,5,7,3,9,6}; //对数组排序 升序 Arrays.sort(arr... Read More
posted @ 2018-12-17 11:48 SasaL Views(103) Comments(0) Diggs(0) Edit
package cn.sasa.demo3; import java.text.DecimalFormat; public class MathDemo { public static void main(String[] args) { //返回平方根 double sqrtNum = Math.sqrt(4); System.out... Read More
posted @ 2018-12-17 11:17 SasaL Views(162) Comments(0) Diggs(0) Edit
package cn.sasa.demo2; public class SystemDemo { public static void main(String[] args) { func_arraycopy(); } static void func_1() { //currentTimeMillis() 获取当前的毫秒数 返... Read More
posted @ 2018-12-17 10:55 SasaL Views(394) Comments(0) Diggs(0) Edit
package cn.sasa.demo1; public class TestDemo { public static void main(String[] args) { /** *基本数据类型对应的包装类 *char ---- Character *int ------ Integer *byte ---- Byte *short --- Short ... Read More
posted @ 2018-12-17 09:53 SasaL Views(134) Comments(0) Diggs(0) Edit
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页