Java String Decapitalize decapitalize(String word)

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

Description

Decapitalizes a word - only the first character is converted to lower case.

License

LGPL

Parameter

Parameter Description
word word/phrase to decapitalize.

Return

same as input argument, but the first character is in lower case.

Declaration

public static String decapitalize(String word) 

Method Source Code

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

public class Main {
    /**/*from  ww  w.j  av a2s  .  co  m*/
     * Decapitalizes a word - only the first character is converted to lower case.
     * 
     * 
     * @param word word/phrase to decapitalize.
     * @return same as input argument, but the first character is in lower case.
     */
    public static String decapitalize(String word) {
        return word.substring(0, 1).toLowerCase() + word.substring(1);
    }
}

Related

  1. decapitalize(String string)
  2. decapitalize(String string)
  3. decapitalize(String string)
  4. decapitalize(String string)
  5. decapitalize(String text)
  6. decapitalizeAsJavaBeans(String name)
  7. decapitalizeFirstCharOfString(final String input)
  8. decapitalizeFirstLetter(final String str)
  9. deCapitalizeFirstLetter(String data)