Java String Capitalize First capitaliseFirst(String string)

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

Description

capitalise First

License

LGPL

Declaration

public static String capitaliseFirst(String string) 

Method Source Code

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

public class Main {
    public static String capitaliseFirst(String string) {
        return Character.toTitleCase(string.charAt(0))
                + string.substring(1, string.length());
    }/*from w w w  .j  a  va  2 s  .  co  m*/
}

Related

  1. capitaliseFirstLetter( final String originalLanguageName)
  2. capitaliseFirstLetter(String s)
  3. capitaliseFirstLetter(String str)
  4. capitaliseFirstLetter(String str)