少年阿賓

          那些青春的歲月

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks

          package com.abin.lee.reflect;

          import java.lang.reflect.Method;

          public class DumpMethods {
           public static void main(String[] args) {
            try {
             Class clazz=Class.forName("java.util.Stack");
             Method method[]=clazz.getDeclaredMethods();
             for(int i=0;i<method.length;i++)
              System.out.println(method[i].toString());
            } catch (Exception e) {
             e.printStackTrace();
             System.err.println(e.getMessage());
            }
           }

          }

          posted on 2012-04-14 01:02 abin 閱讀(753) 評(píng)論(0)  編輯  收藏 所屬分類: Java反射機(jī)制

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 青海省| 安岳县| 勃利县| 巴林左旗| 银川市| 兴隆县| 丰宁| 西峡县| 镇原县| 桦南县| 漯河市| 拉孜县| 盐池县| 临安市| 日照市| 巢湖市| 民权县| 庆云县| 闽清县| 金湖县| 仙游县| 体育| 甘肃省| 仁怀市| 郁南县| 中山市| 巴林右旗| 右玉县| 鹤山市| 香港 | 新建县| 佛冈县| 景德镇市| 高阳县| 潮安县| 临漳县| 天峨县| 营口市| 寻乌县| 兴业县| 丹凤县|