Here you can find the source of suffixName(String name)
public static String suffixName(String name)
//package com.java2s; //License from project: Apache License public class Main { public static String suffixName(String name) { final char first = name.charAt(0); if (Character.isUpperCase(first)) { return name; } else {//from w ww. j a va 2 s . c om return Character.toUpperCase(first) + name.substring(1); } } }