Java String Capitalize capitalizeString(String aString)

Here you can find the source of capitalizeString(String aString)

Description

capitalize String

License

LGPL

Declaration

public static String capitalizeString(String aString) 

Method Source Code

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

public class Main {
    public static String capitalizeString(String aString) {
        if (aString != null && aString.length() > 0)
            return aString.substring(0, 1).toUpperCase()
                    + aString.substring(1);
        return "";
    }//from w  ww .  j a v a2  s .co  m
}

Related

  1. capitalizePackageName(final String packageName)
  2. capitalizePlayerName(String name)
  3. capitalizePropertyName(String propertyName)
  4. capitalizePropertyName(String s)
  5. capitalizeString(final String in)
  6. capitalizeString(String str)
  7. capitalizeString(String string)
  8. capitalizeString(String string)
  9. capitalizeString(String string)