Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java class name to string

String className = n.getClass().getName();
String name = className.substring(className.lastIndexOf('$')+1,className.length()-4);
System.out.println(name);  
 
PREVIOUS NEXT
Tagged: #java #class #string
ADD COMMENT
Topic
Name
2+7 =