# Coding task Please return a list of all phone numbers. ```java Map<String, List<String>> people = new HashMap<>(); people.put("John", Arrays.asList("555-1123", "555-3389")); people.put("Mary", Arrays.asList("555-2243", "555-5264")); people.put("Steve", Arrays.asList("555-6654", "555-3242")); // your implementation goes here List<List<String>> listOfNumbers = people.values(); List<String> phoneNrs = numbers.stream().flatMap(list -> list.stream()).collect(Collectors.toList()); ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up