Java tutorial
//package com.java2s; /** * @copyright Urucas * @license Copyright (C) 2013. All rights reserved * @version Release: 1.0.0 * @link http://urucas.com * @developers Bruno Alassia, Pamela Prosperi */ public class Main { public static boolean ValidPhoneNumber(String pn) { return pn.matches("\\d{8,}"); } }