摘要:
一、使用Stream的目的:用于解决已有集合类库既有的弊端,只求关注【目的】,不关注【方式】,且其数据源:可以是集合,数组等 例子: public class NormalFilter { public static void main(String[] args) { List<String> l 阅读全文
摘要:
一、 public class HashMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, Cloneable, Serializable { //数组的默认初始化容量为:16 static final int DEFAULT_INITIAL 阅读全文
摘要:
一、 public class BinarySeachTest { public static void main(String[] args) { int[] arr = new int[]{22,54,88,97,105,112}; System.out.println(binarySeach( 阅读全文