package day01;import java.util.*;public class Mapday1 {public static void main(String[] args) {/*
HashMap 无序 不重复,会覆盖前面 无索引*/System.out.println("--------------------");Map<String, Integer> map = new HashMap<>();map.put("wwx1", 1);map.put("wwx2", 2);map.put("wwx3", 3);map.forEach((k,v)->{System.out.println(k+"->"+v);});}
}