Android String Case Convert CoverFirstWordUp(String string)

Here you can find the source of CoverFirstWordUp(String string)

Description

Cover First Word Up

Declaration

public static String CoverFirstWordUp(String string) 

Method Source Code

//package com.java2s;

public class Main {
    public static String CoverFirstWordUp(String string) {
        String str = null;/*from  w  ww.j ava 2  s. c om*/
        if (string != null && !"".equals(string)) {
            str = string.substring(0, 1).toUpperCase()
                    + string.substring(1);

        }
        return str;
    }
}

Related

  1. toLowerCase(String src)
  2. swapCase(String str)
  3. toLowerCase(String str)
  4. toLowerCase(String str, int beginIndex, int endIndex)