title: Best way to store Country codes, names, and Continent in Java
body: <p>I want to have  a <code>List</code> or <code>Array</code> of some sort, storing this information about each country:</p>
  
  <ul>
  <li>2 letter code</li>
  <li>Country name such as Brazil</li>
  <li>Continent/region of the world such as Eastern Europe, North America, etc.</li>
  </ul>
  
  <p>I will classify each country into the region/continent manually (but if there exists a way to do this automatically, do let me know). This question is about how to store and access the countries. For example, I want to be able to retrieve all the countries in North America.</p>
  
  <p>I don't want to use local text files or such because this project will be converted to javascript using Google Web Toolkit. But storing in an Enum or another resource file of some sort, keeping it separate from the rest of the code, is what I'm really after.</p>