Java String Uncapitalize uncapitalize(final String str)

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

Description

uncapitalize

License

Apache License

Declaration

public static String uncapitalize(final String str) 

Method Source Code

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

public class Main {
    public static String uncapitalize(final String str) {
        if (str == null || str.length() == 0) {
            return str;
        }/* w  w w.j ava2s  .c  om*/
        return str.substring(0, 1).toLowerCase() + str.substring(1);
    }
}

Related

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