Java tutorial
//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; } }