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.
Creating an internationalized Java program involves several tasks:
- Isolate the locale-sensitive code and data. For example, strings, dates, and numbers in your program.
- Set or get the locale using the Locale class.
- Format dates and numbers to specify a locale if you do not want to use the default locale.
- 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:
