get Lower Camel From Upper Camel - Android java.lang

Android examples for java.lang:String Case

Description

get Lower Camel From Upper Camel

Demo Code


public class Main{

    public static String getLowerCamelFromUpperCamel(String upperCamel) {
        upperCamel = getClassName(getClassName(upperCamel));
        return upperCamel.substring(0, 1).toLowerCase()
                + upperCamel.substring(1);
    }//w  w w.  ja va 2 s. c  o m

}

Related Tutorials