Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.lang.reflect.Method;

public class Main {
    static public Method isMethodImplemented(Object obj, String methodName) {
        Method[] methods = obj.getClass().getDeclaredMethods();
        for (Method m : methods) {
            if (m.getName().contains(methodName)) {
                return m;
            }
        }
        return null;
    }
}