Here you can find the source of toLowerCase(char[] chars)
public static void toLowerCase(char[] chars)
//package com.java2s; /***************************************************************************************** * *** BEGIN LICENSE BLOCK *****// w w w . j av a2s . c om * * Version: MPL 2.0 * * echocat Jomon, Copyright (c) 2012-2013 echocat * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * *** END LICENSE BLOCK ***** ****************************************************************************************/ public class Main { /** * Convert a string to lower case. (Faster than String.toLowerCase) */ public static void toLowerCase(char[] chars) { for (int a = 0; a < chars.length; a++) { chars[a] = Character.toLowerCase(chars[a]); } } }