From a80ae59528af5f5e31aa012018f6e85025b63b12 Mon Sep 17 00:00:00 2001 From: Yuliia Baranetska <57073872+kuryuliya@users.noreply.github.com> Date: Sun, 29 Jun 2025 16:20:27 +0200 Subject: [PATCH 1/2] 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 --- .../concept/international-calling-connoisseur/.docs/hints.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/international-calling-connoisseur/.docs/hints.md b/exercises/concept/international-calling-connoisseur/.docs/hints.md index 056edd53d..1e144f0b2 100644 --- a/exercises/concept/international-calling-connoisseur/.docs/hints.md +++ b/exercises/concept/international-calling-connoisseur/.docs/hints.md @@ -22,7 +22,7 @@ ## 5. Find a country's dialing code -- There is a [way][map-values-docs] to get an iterable collection of values in a map. +- 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. ## 6. Update the country's dialing code @@ -35,5 +35,5 @@ [map-get-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#get(java.lang.Object) [map-contains-key-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#containsKey(java.lang.Object) [map-contains-value-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#containsValue(java.lang.Object) -[map-values-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#values() +[map-entry-set-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#entrySet() [map-remove-docs]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Map.html#remove(java.lang.Object) From bed7fd68231358036d44e6ccc4eacc5c939b3d24 Mon Sep 17 00:00:00 2001 From: Yuliia Baranetska <57073872+kuryuliya@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:14:55 +0200 Subject: [PATCH 2/2] Update exercises/concept/international-calling-connoisseur/.docs/hints.md Co-authored-by: Kah Goh --- .../concept/international-calling-connoisseur/.docs/hints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/international-calling-connoisseur/.docs/hints.md b/exercises/concept/international-calling-connoisseur/.docs/hints.md index 1e144f0b2..8bedc370b 100644 --- a/exercises/concept/international-calling-connoisseur/.docs/hints.md +++ b/exercises/concept/international-calling-connoisseur/.docs/hints.md @@ -22,7 +22,7 @@ ## 5. Find a country's dialing code -- 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. +- There is a [way][map-entry-set-docs] to get an iterable collection of entries in a map, which allows you to go through the key-value pairs. ## 6. Update the country's dialing code