Java tutorial
//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; } }