Java String Decapitalize decapitalize(String string)

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

Description

decapitalize

License

Apache License

Declaration

public static String decapitalize(String string) 

Method Source Code

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

public class Main {
    public static String decapitalize(String string) {
        if (string == null || string.isEmpty()) {
            return string;
        }//from  w ww  . j  a v  a  2 s. c om
        String dec = string.substring(0, 1).toLowerCase();
        if (string.length() > 1) {
            dec += string.substring(1);
        }
        return dec;
    }
}

Related

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