Java Locale getDisplayLanguage() methodThe getDisplayLanguage(Locale inLocale) method of Java Locale class returns a name for the locale?s language that is appropriate for display to the user. If possible, the name returned will be localized according to inLocale. SyntaxParameterNA ReturnThis method does not return a value. Example 1Test it NowOutput: Locale: en_INDIA Language of in locale1: English Example 2Test it NowOutput: Locale1 name: en_INDIA Locale2 name: fr_ECUADOR Language of in locale1: English Language of in locale2: French
Next TopicJava Locale
|