I have this example of HashMap:
Map<Integer, String> list = new HashMap<>();
list.put(742, "Veterinary Services (0742)");
list.put(743, "Wine producers (0743)");
list.get(744);
Is there a way if I try to get a key without available key to return some default value similar to switch case?