编辑代码

import javax.swing.*;
import java.lang.reflect.Method;
class Main {
	public static void main(String[] args) {
        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
		System.out.println("Hello world!   - java.jsrun.net ");
        JFrame jf = new JFrame("1234");
        Class<?> cls = JFrame.class;
        Method[] methods = cls.getMethods();
        for (int i=0;i<methods.length;i++)
        {
        System.out.println(methods[i].toString());
        }
	}
}