현재 클래스의 이름을 가져오려면


public String getClassSimpleName() {

        return this.getClass().getSimpleName();

}


요걸 사용하면 되고


/////////////////////////////////////////


패키지 + 클래스 이름을 원하면


public String getClassName() {

        return this.getClass().getName();

}


요걸 사용하면 된다

+ Recent posts