Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isPhoneNum(String phoneNum) {
if (phoneNum.length() != 11)
return false;
if (!phoneNum.substring(0, 1).equals("1"))
return false;
return true;
}
}