Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String remove86(String phone) { if (TextUtils.isEmpty(phone)) { return phone; } String str = phone; if (phone.startsWith("86")) str = phone.substring(2); else if (phone.startsWith("+86")) str = phone.substring(3); return str; } }