Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get object from string name

try {
	ObjectType instance = getClass().getDeclaredField("name of var").get(ObjectType.class);
} catch (Exception e) {
	e.printStackTrace();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #object #string
ADD COMMENT
Topic
Name
4+7 =