Java String Capitalize First capitalizedFirst(String str)

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

Description

capitalized First

License

Apache License

Declaration

static public String capitalizedFirst(String str) 

Method Source Code

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

public class Main {
    static public String capitalizedFirst(String str) {
        return str.substring(0, 1).toUpperCase() + str.substring(1);
    }/*from   w w w.  jav a  2 s  .c  om*/
}

Related

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