Here you can find the source of charArrayToLowerCase(char[] arr)
public static char[] charArrayToLowerCase(char[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static char[] charArrayToLowerCase(char[] arr) { char[] result = new char[arr.length]; for (int i = 0; i < result.length; ++i) { result[i] = arr[i] > 0x40 && arr[i] < 0x5B ? (char) ((int) arr[i] + 0x20) : arr[i]; }//from w w w .jav a 2 s. c o m return result; } }