Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.reflect.Method;

public class Main {

    public static void main(String[] args) throws Exception {

        Class cls = Class.forName("java.awt.Label");
        System.out.println("Methods =");

        Method m[] = cls.getMethods();
        for (int i = 0; i < m.length; i++) {
            System.out.println(m[i]);
        }
    }
}