How want to create a Map<String , Object>.
In this map everytime the Object is a string. But Now I want to put a class in the object in addition to that. Is this a good way to mix string and a class object? If yes, when I iterate through the map, how can I distiguish between class and string?
1 Answer