Posted by À±°æ±¸ on April 30, 1997 at 19:10:59:
In Reply to: instanceÀÇ template class À̸§ ¾Ë¾Æ³»±â posted by °½Åµ¿ on April 30, 1997 at 11:44:43:
API ¹®¼¿¡¼ java.lang.Class Ŭ·¡½ºÀÇ ³»¿ë¿¡ ´ÙÀ½°ú °°Àº ¿¹Á¦°¡ ÀÖ½À´Ï´Ù.
void printClassName(Object obj) {
System.out.println("The class of " + obj +
" is " + obj.getClass().getName());
}