javase-常用三种遍历方法 import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class Bianli { public static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("add"); list.add("…
https://yq.aliyun.com/ziliao/210955 public static void main(String[] args) { HashMap<Integer, String> map = new HashMap<Integer, String>(); for (int i = 0; i < 40000; i++) { map.put(i, "第" + i + "个"); } //循环第一种 long t1 =…