Java String Uncapitalize unCapitalize(String string)

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

Description

Will return a uncapitalized string

License

Open Source License

Parameter

Parameter Description
string string to unCapitalize

Return

uncapitalized string

Declaration

public static String unCapitalize(String string) 

Method Source Code

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

public class Main {
    /**//from  w ww. j a  va2 s  .  c o m
     * Will return a uncapitalized string
     *
     * @param string string to unCapitalize
     *
     * @return uncapitalized string
     */
    public static String unCapitalize(String string) {
        return string.substring(0, 1).toLowerCase() + string.substring(1);
    }
}

Related

  1. unCapitalize(String str)
  2. uncapitalize(String str)
  3. uncapitalize(String str)
  4. uncapitalize(String str)
  5. uncapitalize(String string)
  6. uncapitalize(String string)
  7. uncapitalize(String string)
  8. uncapitalize(String string0)
  9. uncapitalize(String text)