The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.
The internationalized program is flexible; it allows the end user to specify a language and a country on the command line. In the following example the language code is fr
(French) and the country code is FR
(France), so the program displays the messages in French:
% java I18NSample fr FR Bonjour. Comment allez-vous? Au revoir.
In the next example the language code is en
(English) and the country code is US
(United States) so the program displays the messages in English:
% java I18NSample en US Hello. How are you? Goodbye.