Java String Lower Case toLowerCase(String str)

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

Description

to Lower Case

License

Apache License

Declaration

public static String toLowerCase(String str) 

Method Source Code

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

public class Main {

    public static String toLowerCase(String str) {
        StringBuffer buffer = new StringBuffer(str);
        for (int i = 0; i < buffer.length(); i++) {
            char c = buffer.charAt(i);
            buffer.setCharAt(i, Character.toLowerCase(c));
        }/* w w w. j  a  v  a 2  s .  c  o m*/
        return buffer.toString();
    }

    public static String toString(Object obj) {
        StringBuffer buffer = new StringBuffer();
        if (obj != null) {
            buffer.append(obj);
        }
        return buffer.toString();
    }
}

Related

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