1. Map的5种遍历方法 package com.grandage.test; import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class MapTraversing { public static void main(String[] args) { Map<String, String> map = new HashMap<>(); map.put("key1", "val...