Convert string to uppercase - Android java.lang

Android examples for java.lang:String Case

Description

Convert string to uppercase

Demo Code

import android.text.TextUtils;

public class Main{

    public static String capitalize(String target) {
        return TextUtils.isEmpty(target) ? "" : target.toUpperCase();
    }//from   ww w. j  a  v  a  2  s.  co m

}

Related Tutorials