src/main/java/de/blau/android/util/Util.java
/**
     * Convert first letter of v to upper case using English
     * 
     * @param v the input String
     * @return a String with its first letter as a capital (or null if v was null)
     */
Convert first letter of v to upper case using English

@param v the input String
@return a String with its first letter as a capital (or null if v was null)
Convert first letter of v to upper case using English @param v the input String @return a String with its first letter as a capital ( or null if v was null )
@Nullable
    public static String capitalize(@Nullable String v) {
        if (v != null && v.length() > 0) {
            char[] a = v.toCharArray();
            a[0] = Character.toUpperCase(a[0]);
            return String.valueOf(a);
        }
        return v;
    }
@ Nullable public static String capitalize ( @ Nullable String v ) { if ( v != null && v . length ( ) > 0 ) { char [ ] a = v . toCharArray ( ) ; a [ 0 ] = Character . toUpperCase ( a [ 0 ] ) ; return String . valueOf ( a ) ; } return v ; }
Convert first letter of v to upper case using English
Convert first letter of v to upper case using English