liststringmethods.java

来自「北京大学出版社的」· Java 代码 · 共 25 行

JAVA
25
字号
package examples.rtti;

import java.lang.reflect.*;

/** A class used to demonstrate the use of the
  * reflection API
  */
public class ListStringMethods {

   /** Test method for the class
     * @param args not used
     * @exception ClassNotFoundException
     *            Thrown if the class being
     *            investigated isn't found
     */
   public static void main( String[] args )
         throws ClassNotFoundException {
      Method[] ma
         = String.class.getMethods();
      for( int i=0; i < ma.length; i++ ) {
         System.out.println( ma[i] );
      }
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?