标签: java
我有以下HashMap示例:
Map<Integer, String> list = new HashMap<>(); list.put(742, "Veterinary Services (0742)"); list.put(743, "Wine producers (0743)"); list.get(744);
如果我尝试获取没有可用密钥的密钥是否有办法返回类似于开关情况的默认值?