### Question:
BreakContinue { public static int unlabeledBreakNestedLoops() { String searchName = "Wilson"; int counter = 0; Map<String, List<String>> nameMap = new HashMap<>(); nameMap.put("Grade1", Arrays.asList("John", "Peter", "Robert", "Wilson")); nameMap.put("Grade2", Arrays.asList("Anthony", "Donald", "Richard", "Arnold")); nameMap.put("Grade3", Arrays.asList("Wilson", "Michael", "Stephen", "Ryan")); Iterator<Entry<String, List<String>>> iterator = nameMap.entrySet() .iterator(); Entry<String, List<String>> entry = null; List<String> names = null; while (iterator.hasNext()) { entry = iterator.next(); names = entry.getValue(); for (String name : names) { if (name.equalsIgnoreCase(searchName)) { counter++; break; } } } return counter; }  static int unlabeledBreak(); static int unlabeledBreakNestedLoops(); static int labeledBreak(); static int unlabeledContinue(); static int labeledContinue();  }### Answer:
@Test public void whenUnlabeledBreakNestedLoops_ThenEqual() { assertEquals(2, unlabeledBreakNestedLoops()); }