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 + -
显示快捷键?