Java String Lower Case toLowerCaseFirst(String str)

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

Description

to Lower Case First

License

Apache License

Declaration

public static String toLowerCaseFirst(String str) 

Method Source Code

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

public class Main {
    public static String toLowerCaseFirst(String str) {
        if (str == null)
            return null;
        if ("".equals(str))
            return str;
        String first = String.valueOf(str.charAt(0));
        str.replaceFirst(first, first.toLowerCase());
        return str;
    }// w  w  w  .  j a  va  2 s. c  o  m

    public static boolean equals(String str1, String str2) {
        if (str1 == null && str2 == null)
            return true;
        if (str1 != null && str1.equals(str2))
            return true;
        return false;
    }

    public static String toLowerCase(String str) {
        return str == null ? str : str.toLowerCase();
    }
}

Related

  1. toLowerCase(String[] strArr)
  2. toLowerCase(StringBuffer buf)
  3. toLowerCase(StringBuffer buffer)
  4. toLowerCase0(String string)
  5. toLowerCaseAscii(String s)
  6. toLowerCaseFirst(String str)
  7. toLowerCaseFirst(String str)
  8. toLowerCaseFirst(String text)
  9. toLowerCaseFirst(String text)