Here you can find the source of capitaliseFirstLetter( final String originalLanguageName)
Parameter | Description |
---|---|
originalLanguageName | the original language name |
public static String capitaliseFirstLetter( final String originalLanguageName)
//package com.java2s; public class Main { /**/*from w ww. j a va2 s .c om*/ * Capitalises the first letter, hoping this works for all Locales. To be revisited otherwise * * @param originalLanguageName the original language name * @return the string */ public static String capitaliseFirstLetter( final String originalLanguageName) { final char codePointAt = originalLanguageName.charAt(0); final char firstLetterTitle = Character.toTitleCase(codePointAt); return firstLetterTitle + originalLanguageName.substring(1); } }