1 Reply Latest reply: Oct 8, 2009 10:42 AM by 843810 RSS

    How dose Java handle Locales for which there is not FormatData impl.

    843810
      Hi

      if no FormatData class is available for a locale, what does Java do. For example:
      I create a Local with
      Locale loc = new Locale("de", "BE"); //German, Belgium
      Unfortunately, for Belgium only French and Dutch is available. So how does Java format Date/Time and Numbers? What are the rules?

      Thanks
        • 1. Re: How dose Java handle Locales for which there is not FormatData impl.
          843810
          Note: When you ask for a resource for a particular locale, you get back the best available match, not necessarily precisely what you asked for. For more information, look at ResourceBundle.

          Above text is from the link [http://java.sun.com/javase/6/docs/api/java/util/Locale.html|http://java.sun.com/javase/6/docs/api/java/util/Locale.html] . for more detail read the api.

          Edited by: shashi_rajak on 8 Oct, 2009 9:11 PM