vendredi 26 janvier 2018

Java Reflection with Lists

I have an object which is basically collection and I want to create new instance of that collection and add elements to it. The thing is, I don't know how to create an instance of that collection or if it is even possible. I managed to find out the canonical name for that collection class by calling object.getClass().getCanonicalName();





Aucun commentaire:

Enregistrer un commentaire