public void setStr( String theStr){ this.str = theStr;}
public String getStr(){ return this.str;}
public ReflectTest() {}
public ReflectTest( String theStr){ this.str = theStr;}
public void printStr(){
System.out.println(" invoke this method start");
System.out.println(" theStr ="+this.str);
System.out.println(" this invoke is end");
}
public static void main(String[] args) {
ReflectTest reflectTest1 = new ReflectTest( " aaa");
Class reflectClass = reflectTest1.getClass();
// that is your request: