Java String Uncapitalize uncapitalize(String s)

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

Description

uncapitalize

License

Open Source License

Declaration

public static String uncapitalize(String s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String uncapitalize(String s) {
        if (s == null) {
            return s;
        }//from w  w w . j  av  a  2 s .  c o  m
        int size = s.length();
        if (size == 0) {
            return s;
        }
        StringBuilder builder = new StringBuilder(size);
        builder.append(Character.toLowerCase(s.charAt(0)));
        return builder.append(s.substring(1)).toString();
    }
}

Related

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