Java String Capitalize capitalized(String s)

Here you can find the source of capitalized(String s)

Description

capitalized

License

Open Source License

Declaration

public static String capitalized(String s) 

Method Source Code

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

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

Related

  1. capitalize(String words)
  2. capitalize(StringBuilder text)
  3. capitalizeAt(StringBuilder builder, int index)
  4. capitalizeClass(String className)
  5. capitalized(String s)
  6. capitalized(String str)
  7. capitalizeD(String str, char[] delimiters)
  8. capitalizedArray(String[] sstr)
  9. capitalizedCase(CharSequence source, char... delimiters)