Java tutorial
//package com.java2s; public class Main { public static String lowerFirstLetter(String string) { if (isEmpty(string) || !Character.isUpperCase(string.charAt(0))) { return string; } return String.valueOf((char) (string.charAt(0) + 32)) + string.substring(1); } public static boolean isEmpty(CharSequence string) { return string == null || string.length() == 0; } public static int length(CharSequence string) { return string == null ? 0 : string.length(); } }