Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static final String MATCHES_CHINESE = "[\\u4e00-\\u9fa5]+";

    public static boolean matchesChinese(String str) {
        return str.matches(MATCHES_CHINESE);
    }
}