mercredi 24 décembre 2014

Concatenating package and class names (java reflection)

I have a Package instance and a class name as a string. Is there any elegant way to concatenate them (so I can run Class.forName() on the result)?


I could of course just extract the string from the package and add a period between it and the class name, but there must be a more elegant way to do it.






Aucun commentaire:

Enregistrer un commentaire