Skip to content

Commit a80ae59

Browse files
authored
fix hints to match exemplar solution implementation for international-calling-connoisseur
- Change hint #5 from suggesting values() to entrySet() - Update description to explain entrySet() allows searching both keys and values - Fix link reference to point to correct Map API documentation
1 parent fac4620 commit a80ae59

File tree

1 file changed

+2
-2
lines changed
  • exercises/concept/international-calling-connoisseur/.docs

1 file changed

+2
-2
lines changed

exercises/concept/international-calling-connoisseur/.docs/hints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
## 5. Find a country's dialing code
2424

25-
- There is a [way][map-values-docs] to get an iterable collection of values in a map.
25+
- There is a [way][map-entry-set-docs] to get an iterable collection of entries in a map, which allows you to search through both keys and values.
2626

2727
## 6. Update the country's dialing code
2828

@@ -35,5 +35,5 @@
3535
[map-get-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#get(java.lang.Object)
3636
[map-contains-key-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#containsKey(java.lang.Object)
3737
[map-contains-value-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#containsValue(java.lang.Object)
38-
[map-values-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#values()
38+
[map-entry-set-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#entrySet()
3939
[map-remove-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#remove(java.lang.Object)

0 commit comments

Comments
 (0)