Java tutorial
//package com.java2s; public class Main { /** * Get a parameter name from a method name. * * @param methodName the method name * @return the parameter name */ public static String parameterName(final String methodName) { StringBuilder buf = new StringBuilder(methodName.substring(3)); buf.setCharAt(0, Character.toLowerCase(methodName.charAt(3))); return buf.toString(); } }