Android examples for java.lang:String Algorithm
hide Phone Num
import android.graphics.Paint; import android.text.TextUtils; import android.widget.TextView; import java.util.UUID; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main{ public static String hidePhoneNum(String phoneNum) { return phoneNum.substring(0, 3) + "****" + phoneNum.substring(7, phoneNum.length()); }//from ww w . j a va 2 s. co m }