Now i wanna write a method like this:
public String getObjName(Object obj)
This method return the name of this object,for example,
Student stu = new Student();
String objname = getObjName(stu);
Then objname will be "stu".
I learn a lot about java reflection,but i still confused with this issue,every tips will help.