java.util.Locale类的测试

public static void main(String[] args) {
Locale locale = Locale.getDefault();
System.out.println(locale.getCountry());
System.out.println(locale.getLanguage());
System.out.println(locale.getDisplayCountry());
System.out.println(locale.getDisplayLanguage());
}

输出:

 

posted @ 2020-04-03 09:41  工设091  阅读(239)  评论(0)    收藏  举报