Here you can find the source of toGetter(String fieldName)
public static String toGetter(String fieldName)
//package com.java2s; //License from project: Open Source License public class Main { public static String toGetter(String fieldName) { return (!fieldName.startsWith("is") ? "get" + Character.toUpperCase(fieldName.charAt(0)) + fieldName.substring(1) : fieldName);// ww w . j a v a2s . com } }