Java tutorial
//package com.java2s; public class Main { public static CharSequence toLowerCase(CharSequence character) { if (character == null || character.equals("")) { return character; } StringBuffer buffer = new StringBuffer(); for (int i = 0; i < character.length(); i++) { buffer.append(Character.toLowerCase(character.charAt(i))); } return buffer.toString(); } }