FileDocCategorySizeDatePackage
HelloResourceBundleExample.javaAPI DocExample1121Mon Jan 15 13:56:02 GMT 2001None

HelloResourceBundleExample

public class HelloResourceBundleExample extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

    try {
      Locale frenchLocale = new Locale("fr", "FR");
      ResourceBundle rb = ResourceBundle.getBundle("HelloResourceBundle", frenchLocale);

      System.out.println(rb.getString("Hello"));
      System.out.println(rb.getString("Goodbye"));

    } catch (MissingResourceException mre) {
      mre.printStackTrace();
    }