I am retrieving a String
variable from the Database
and storing in a variable.
String name = "Peter" ---- >(retrieved from the database)
I already have a class called Peter
. I need to initialize the class using the retrieved variable name
.
Assume that ,whatever String
is retrieved from the database , I have a class defined for it in my package...
Is there a way to create a Object
for the String
I retrieve from the Database
?