I have the following variables
MyObj myObj = new MyObj();
String myString = "myPackage.MyObj";
where is MyObjas follows
package myPackage;
class MyObj {
private String one;
private String two;
}
How to check if an MyObjinstance of the full class name represented by a string myString?
source
share