Java String Uncapitalize uncapitalize(String name)

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

Description

uncapitalize

License

Apache License

Declaration

public static String uncapitalize(String name) 

Method Source Code

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

public class Main {
    public static String uncapitalize(String name) {
        if (name == null || name.length() == 0) {
            return name;
        }/*  ww  w . j  a v a 2 s  . co  m*/

        char first = name.charAt(0);

        if (first >= 65 && first <= 90) { // uppercase + 32
            return Character.toLowerCase(first) + name.substring(1);
        } else {
            return name;
        }
    }
}

Related

  1. uncapitalize(final String str)
  2. uncapitalize(final String str)
  3. uncapitalize(final String str)
  4. unCapitalize(String data, int pos)
  5. uncapitalize(String input)
  6. uncapitalize(String name)
  7. uncapitalize(String s)
  8. uncapitalize(String s)
  9. uncapitalize(String s)