Java String Upper Case toUpperCaseHead(String str)

Here you can find the source of toUpperCaseHead(String str)

Description

to Upper Case Head

License

LGPL

Declaration

public static String toUpperCaseHead(String str) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static String toUpperCaseHead(String str) {
        if (str.length() == 0)
            return str;
        return str.substring(0, 1).toUpperCase() + str.substring(1);
    }/*  w w  w.  j  ava 2  s . co  m*/
}

Related

  1. toUpperCaseFirstLetter(String str)
  2. toUppercaseFirstLetter(String str)
  3. toUpperCaseFirstLetter(StringBuilder sb)
  4. toUpperCaseFirstOne(String origin)
  5. toUpperCaseFirstOne(String s)
  6. toUppercaseHeadCharactor(String str)
  7. toUpperCaseIdent(String ident)
  8. toUpperCaseName(String s)
  9. toUpperCaseNamespace(String string)