Java String Lower Case toLowerCaseFirstOne(String s)

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

Description

to Lower Case First One

License

Apache License

Declaration

public static String toLowerCaseFirstOne(String s) 

Method Source Code

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

public class Main {
    public static String toLowerCaseFirstOne(String s) {
        if (Character.isLowerCase(s.charAt(0)))
            return s;
        else/* w  w  w .ja  v  a  2s .  c  o  m*/
            return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1))
                    .toString();
    }
}

Related

  1. toLowerCaseFirst(String text)
  2. toLowerCaseFirst(String text)
  3. toLowerCaseFirstLetter(String str)
  4. toLowercaseFirstLetter(String str)
  5. toLowercaseFirstLetter(String value)
  6. toLowerCaseIdent(String ident)
  7. toLowerCaseIgnoreNull(String tobeDone)
  8. toLowerCaseInitial(String srcString, boolean flag)
  9. toLowerCaseSafe(String str)