1.
Method[] methods = Yuitest.class.getMethods();for (Method method:methods){ System.out.println( method.getName());}2.
Yuitest yuitest =new Yuitest();Method[] methods = yuitest.getClass().getMethods();for (Method method:methods){ System.out.println( method.getName());}3.
原文地址:https://www.cnblogs.com/shanshen/p/9821216.html
时间: 2024-11-10 15:01:06