Here you can find the source of getMethodName(String prefix, String fieldName)
public static String getMethodName(String prefix, String fieldName)
//package com.java2s; import java.lang.reflect.Field; public class Main { public static String getMethodName(String prefix, String fieldName) { return prefix + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1); }//from w w w . j a v a 2s.c om public static String getMethodName(String prefix, Field field) { return getMethodName(prefix, field.getName()); } public static String getMethodName(String fieldName) { return getMethodName("get", fieldName); } public static String getMethodName(Field field) { return getMethodName("get", field); } }