I have little problem displaying the contents of my hashmap.
public ConcurrentHashMap<Integer, Student> StudentList
= new ConcurrentHashMap<>();
'Student' is a class with two string fields(first name, name), and addition method to return the name (get_name).
But my question is how can I display or it is possible to display names with keys about students in HashMap ? I tried something like that, but only for one filed.
for(Student i : StudentList.values()) {
System.out.println(i.get_name());
}