MCQs > IT & Programming > Java > Best way to access a HashMap of SortedSet entries?

Java MCQs

What is the best way to access a HashMap of SortedSet entries?

Answer

Correct Answer: Map String, SortedSet String>>makeSetMap = new HashMap String, SortedSet String>>(); for (String key : makeSetMap.keySet()) { // loop through all manufacturers SortedSet String> cars = makeSetMap.get(key); for (String c : cars) { // loop through all cars of that key System.out.println(key + " " + c); } }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it