看板 java 關於我們 聯絡資訊
此日起, 此類文章列入禁止條款四之刪除範圍. 我沒有看到任何提到他做了什麼努力來找尋這個 API, 甚至連 google 字串都沒有, 我用了 java class name 去 google 找一下, 第一個連結是 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html 裡面有段範例 Code 是 ==================================================================== The following example uses a Class object to print the class name of an object: void printClassName(Object obj) { System.out.println("The class of " + obj + " is " + obj.getClass().getName()); } ==================================================================== 然後他要用哪一版的 API? (1.0? 1.1? 1.3? 1.4? ...blahblah) 用在哪個領域? (J2SE? J2EE? ...blahblah) 也都沒有提. 以上 ※ 引述《loveflames (.....)》之銘言: : 把java檔裡的class名稱顯示出來 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.64.149.54