Examples: Creating an internationalized Java program

If you need to customize a Java™ program for a specific region of the world, you can create an internationalized Java program with Java locales.

Java locales.

Creating an internationalized Java program involves several tasks:

  1. Isolate the locale-sensitive code and data. For example, strings, dates, and numbers in your program.
  2. Set or get the locale using the Locale class.
  3. Format dates and numbers to specify a locale if you do not want to use the default locale.
  4. Create resource bundles to handle strings and other locale-sensitive data.

Review the following examples, which offer ways to help you complete the tasks required to create an internationalized Java program:

For more information about internationalization, see the following:

Related concepts
Time zone configuration
Java character encodings