Java QQ Number Check isQQ(String qq)

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

Description

is QQ

License

LGPL

Declaration

public static boolean isQQ(String qq) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.regex.Pattern;

public class Main {
    private final static Pattern Regex_QQ = Pattern.compile("[1-9]{5,10}");

    public static boolean isQQ(String qq) {
        if (qq == null || qq.trim().length() == 0) {
            return false;
        }/*w w w . j  a v a2 s . co m*/
        return Regex_QQ.matcher(qq).matches();
    }
}

Related

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