Java String Decapitalize decapitalize(String string)

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

Description

Helper method.

License

Open Source License

Parameter

Parameter Description
string the string that we want to decapitalize.

Return

the same string but with the first letter lower cased.

Declaration

public static String decapitalize(String string) 

Method Source Code

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

public class Main {
    /**/*from w  w  w.j a  v a  2s. c om*/
     * Helper method. Lower case the first letter of the received argument.
     * 
     * @param string the string that we want to decapitalize.
     * 
     * @return the same string but with the first letter lower cased.
     */
    public static String decapitalize(String string) {
        return Character.toLowerCase(string.charAt(0)) + string.substring(1);
    }
}

Related

  1. decapitalize(String st)
  2. decapitalize(String str)
  3. decapitalize(String string)
  4. decapitalize(String string)
  5. decapitalize(String string)
  6. decapitalize(String string)
  7. decapitalize(String text)
  8. decapitalize(String word)
  9. decapitalizeAsJavaBeans(String name)