Here you can find the source of toLowerCase(String text)
public static String toLowerCase(String text)
//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; } }