Download the JDK
Search the Tutorials
Hide the TOC
Trail: Internationalization
Lesson: Introduction
Section: A Quick Example
Introduction
A Quick Example
Before Internationalization
After Internationalization
Running the Sample Program
Internationalizing the Sample Program
Checklist
Home Page > Internationalization > Introduction
« Previous • Trail • Next »
Running the Sample Program

> 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.

« Previous • Trail • Next »
Previous page: After Internationalization
Next page: Internationalizing the Sample Program