Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.util.regex.*;
public class Main {
public static boolean isCellPhone(String phone) {
if (Pattern.matches("\\d{11}", phone == null ? "" : phone)) {
return true;
}
return false;
}
}