getName
public String getName()If this class object represents a class of arrays, then the internal form of the name consists of the name of the element type preceded by one or more '[' characters representing the depth of the array nesting. The encoding of element type names is as follows: Element Type Encoding
boolean Z
byte B
char C
class or interface Lclassname;
double D
float F
int I
long J
short S JDK文档上写得很清楚,就是这么返回的
public String getName()If this class object represents a class of arrays, then the internal form of the name consists of the name of the element type preceded by one or more '[' characters representing the depth of the array nesting. The encoding of element type names is as follows: Element Type Encoding
boolean Z
byte B
char C
class or interface Lclassname;
double D
float F
int I
long J
short S JDK文档上写得很清楚,就是这么返回的
就没想到去查看文档,谢谢 zjpangxie(又胡了)。有得了一次教训,看起来很简单的方法,里面可能越是不简单。