I have considered in thought how I can take a java.lang.String
representing a class name and determine the fully qualified name to then convert the string to a class using Java.lang.Class.forName(FullyQualifiedName)
.
This is puzzling me because I can't use Java.lang.Class.forName()
with a Java.lang.String
representing a class name such as "Address" because I need the fully qualified name or I get an Exception.ClassNotFoundException
which cycles me back to needing to know the fully qualified name but how when I can't use Java.lang.Class.forName()
.
I am simply stuck with my current knowledge. I have searched using Google and even with the creation of this question but I bet this has already been asked-n-answered. Someone please point me in the right direction?
Note: This question should be removed as it does not appear possible to do what the OP is requesting in Java.