Java String Uncapitalize uncapitalize(String str)

Here you can find the source of uncapitalize(String str)

Description

uncapitalize

License

Open Source License

Declaration

public static String uncapitalize(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static String uncapitalize(String str) {
        int strLen;

        if ((str == null) || ((strLen = str.length()) == 0)) {
            return str;
        }/* w  ww .  ja v  a 2  s  .c om*/

        return new StringBuffer(strLen).append(Character.toLowerCase(str.charAt(0))).append(str.substring(1))
                .toString();
    }

    public static String toLowerCase(String str) {
        if (str == null) {
            return null;
        }

        return str.toLowerCase();
    }
}

Related

  1. uncapitalize(String s)
  2. uncapitalize(String s)
  3. uncapitalize(String source)
  4. unCapitalize(String str)
  5. uncapitalize(String str)
  6. uncapitalize(String str)
  7. uncapitalize(String str)
  8. uncapitalize(String str)
  9. uncapitalize(String str)