String (String prefix, String[] words) { StringBuilder buffer = new StringBuilder(prefix); for (int i = 0; i < words.length; i++) { String word = words[i]; final boolean prefixRequiresCapitalization = prefix.length() > 0 && !StringUtil.endsWithChar(prefix, '_'); if (i > 0 || prefixRequiresCapitalization) { buffer.append(StringUtil.capitalize(word)); } else { buffer.append(StringUtil.decapitalize(word)); } } return buffer.toString(); }