Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Locale;

public class Main {
    public static boolean hasLocalChina() {
        boolean has = false;
        Locale locale[] = Locale.getAvailableLocales();
        for (int i = 0; i < locale.length; i++) {
            if (locale[i].equals(Locale.CHINA)) {
                has = true;
                break;
            }
        }
        return has;
    }
}