mercredi 1 juillet 2020

How to convert from Class to Type

How can I convert from Class to Type

for example I have classType var look like this

Class classType = Person.class

how can I create a list of this class type

List <What to write here > myList ?

yes it should be person in this example but I want it to be generic





Aucun commentaire:

Enregistrer un commentaire