HashMap<String, Boolean> myMap = new HashMap<String, Boolean>();
System.out.println(func1(myMap)); //should print "HashMap<String, Boolean>"
I want to know is there such a function. This function should take an object and return the exact type of the object. It should work with all the collections.