Java tutorial
//package com.java2s; public class Main { public static char toLowerCase(char a) { if (a < 'A' || a >= 'a' && a <= 'z') { return a; } if (a <= 'Z') { return (char) (a + ('a' - 'A')); } return Character.toLowerCase(a); } }