Answers for "how get class name"

1

getting class name in java

a.getClass().getName();
Posted by: Guest on September-23-2020
1

how get class name

String className = this.getClass().getSimpleName();
Posted by: Guest on February-05-2021
0

java class name to string

String className = n.getClass().getName();
String name = className.substring(className.lastIndexOf('$')+1,className.length()-4);
System.out.println(name);
Posted by: Guest on November-16-2020

Browse Popular Code Answers by Language