title: How to correctly use java.util.Locale to check for Australian locale
body: <p><strong>Question :</strong> How do I correctly use java.util.locale for checking a user's locale?</p>
  
  <p><strong>Summary :</strong> The legacy code I have uses a predefined static in Locale to check if a user is, for example, in France ...</p>
  
  <pre><code>if(Locale.FRANCE.equals(locale) || Locale.FRENCH.equals(locale)) {
      // do stuff
  }
  </code></pre>
  
  <p>I wish to add some code to check if a user is in Australia. However, Locale only has a limited set of predefined statics, and AUSTRALIA is not one of them. I appear to be able to do the following ...</p>
  
  <pre><code>if(new Locale("AU").equals(locale)) {
      // do stuff
  }
  </code></pre>
  
  <p>However, this is inconsistent with the existing code. What is the correct way of doing it? If the first example I have given is correct, why is the predefined list of statics so limited?</p>