Java QQ Number Check isQQ(String str)

Here you can find the source of isQQ(String str)

Description

is QQ

License

Open Source License

Declaration

public static boolean isQQ(String str) 

Method Source Code

//package com.java2s;

import com.google.common.base.Strings;

public class Main {
    public static final String QQ = "[1-9][0-9]{4,}";

    public static boolean isQQ(String str) {
        return !Strings.isNullOrEmpty(str) && str.matches(QQ);
    }/*from  w ww  . j  a  v a2s  .  c o m*/
}

Related

  1. isQQ(String qq)
  2. isQQ(String qq)
  3. isQq(String str)