Map<String,Integer> workPerson = new HashMap<>();
workPerson.put("A",0);
workPerson.put("B",0);
workPerson.put("C",0);
workPerson.put("D",0);
workPerson.put("E",0);
workPerson.put("F",0);
String inputStr = "F";
workPerson.put(inputStr, workPerson.getOrDefault(inputStr, 0) + 1);
System.out.println(workPerson);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…