I get a set of elements passed to my method without the type specified.
I want to find out what the class of the contained elements is… I know they’re all of the same type.
Tried:
Class c = set.getClass.getComponentClass();
But that probably doesnt work because it’s just for Array collections.
Iterate over the elements in the set and print the class type, if you must. A set is a collection of elements.