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[] argv) throws Exception {
        Class cls = java.lang.String.class;
        Method[] methods = cls.getMethods();
        for (int i = 0; i < methods.length; i++) {
            Class returnType = methods[i].getReturnType();
            Class[] paramTypes = methods[i].getParameterTypes();
            System.out.println(methods[i]);
        }
    }
}