1 // 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html#License 3 /* 4 ******************************************************************************* 5 * Copyright (C) 2013-2014, International Business Machines Corporation and * 6 * others. All Rights Reserved. * 7 ******************************************************************************* 8 */ 9 package com.ibm.icu.samples.iuc; 10 11 import java.util.Locale; 12 13 import com.ibm.icu.text.LocaleDisplayNames; 14 import com.ibm.icu.util.ULocale; 15 16 public class Sample13_Hello { 17 public static void main(String... args) { 18 Locale locale = Locale.getDefault(); 19 String world = LocaleDisplayNames 20 .getInstance(ULocale.forLocale(locale)) 21 .regionDisplayName("001"); 22 System.out.println("Hello, " + world + "\u2603"); 23 } 24 } 25