Java String Lower Case toLowerCase(String text)

Here you can find the source of toLowerCase(String text)

Description

to Lower Case

License

Open Source License

Declaration

public static String toLowerCase(String text) 

Method Source Code

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

public class Main {
    public static String toLowerCase(String text) {
        if (text != null) {
            int len = text.length();
            if (len > 0) {
                char[] buf = new char[len];
                for (int i = 0; i < len; i++) {
                    buf[i] = Character.toLowerCase(text.charAt(i));
                }//from w  w  w  .  j a  va  2s.c o m
                text = new String(buf);
            }
        }
        return text;
    }
}

Related

  1. toLowerCase(String str)
  2. toLowerCase(String str)
  3. toLowerCase(String str)
  4. toLowerCase(String string)
  5. toLowerCase(String string)
  6. toLowerCase(String text)
  7. toLowerCase(String text)
  8. toLowerCase(String value)
  9. toLowerCase(String value)