import java.util.HashMap; import java.util.Map; public class Main { public static void main(String[] args) { Map map=new HashMap&l
Use this code for listing out the values of map i.e. class names:
values
map
Object[] array = map.values().toArray(); for (Object object : array) { System.out.println(object.toString()); }