Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    public static boolean checkMobile(String mobile) {
        String mobilePattern = "^1[3,4,5,8]\\d{9}$";
        return mobile.matches(mobilePattern);
    }
}