Created
March 29, 2019 14:39
-
-
Save ShanikaNishadhi/b70373aec16e71a2c29bd608d37b1e74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Locale; | |
class Main { | |
public static void main(String[] args) { | |
Locale locale = Locale.GERMANY; | |
String defaultCountry = locale.getDisplayName(); | |
String targetCountry = locale.getDisplayName(locale); | |
System.out.println(defaultCountry); | |
System.out.println(targetCountry); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment