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 removePlusFromMobile(String mobile) {
        if (mobile != null || !TextUtils.isEmpty(mobile)) {
            String[] arrMobile = mobile.split("\\+");
            if (arrMobile.length > 0)
                return arrMobile[1];
        }
        return mobile;
    }
}