Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.lang.reflect.Method;

public class Main {
    private static final String fGET = "get";

    private static String getMethodNameMinusGet(Method aMethod) {
        String result = aMethod.getName();
        if (result.startsWith(fGET)) {
            result = result.substring(fGET.length());
        }
        return result;
    }
}