Java String Decapitalize decapitalize(String s)

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

Description

decapitalize

License

Open Source License

Declaration

public static String decapitalize(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static String decapitalize(String s) {
        int len = s.length();
        if (len == 0)
            return s;
        else if (len == 1)
            return Character.toLowerCase(s.charAt(0)) + "";
        else//from  w ww  . ja  v a  2s  .  c o  m
            return Character.toLowerCase(s.charAt(0)) + s.substring(1);
    }
}

Related

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