I’m trying to create a program using Java reflection where you pass the name of the class and a list of arguments to the program. The program then takes the list of arguments and uses them to initialise an object of the class.
I’m really lost as to how to go about finding the right constructor to use as it will depend on the list of arguments. Does anyone have any idea how to go about this?
Aucun commentaire:
Enregistrer un commentaire