Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    public static boolean hasDigit2(String content) {
        boolean flag = false;
        Pattern p = Pattern.compile("[a-zA-Z0-9\\u4E00-\\u9FA5]+");
        Matcher m = p.matcher(content);
        if (m.matches()) {
            flag = true;
        }
        return flag;
    }
}