Java String Capitalize First capitaliseFirstLetter(String text)

Here you can find the source of capitaliseFirstLetter(String text)

Description

capitalise First Letter

License

Open Source License

Declaration

public static String capitaliseFirstLetter(String text) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String capitaliseFirstLetter(String text) {
        if (text == null || text.length() <= 0)
            return text;
        return text.substring(0, 1).toUpperCase() + text.substring(1);
    }/*from w w w .  j  av  a 2 s  . co  m*/
}

Related

  1. capitaliseFirst(String string)
  2. capitaliseFirstLetter( final String originalLanguageName)
  3. capitaliseFirstLetter(String s)
  4. capitaliseFirstLetter(String str)
  5. capitaliseFirstLetter(String str)
  6. capitalizedFirst(String str)
  7. capitalizedLetter(String str, boolean onlyFirst)
  8. capitalizeFirst(String attribute)
  9. capitalizeFirst(String input)