Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Create class from string variable JAVA

String className = "Class1";
Object xyz = Class.forName(className).newInstance();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Create #class #string #variable #JAVA
ADD COMMENT
Topic
Name
7+5 =