X1116: Making Maps - ID to name

Create a Map that can store Integer ID numbers that will map to String name values. Create a Map object that can store such data. You don't need to add any pairs to the map, just create and return it.

Your Answer:

x
 
1
public Map<Integer, String> makeIdsToNames()
2
{
3
    
4
}
5
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.