Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}