Java tutorial
//package com.java2s; //License from project: Apache License public class Main { /** name -> Name-> setName */ private static String getMethodName(String propertyName, String prefix) { final char[] chars = propertyName.toCharArray(); chars[0] = Character.toUpperCase(chars[0]); return prefix + new String(chars); } }