I want to have a List
or Array
of some sort, storing this information about each country:
The easiest way to do this is to create the country/continent structure in Java using a map (or whatever collection) and then persist it using XStream
This will create an XML representation of the collection, and you can read than into your process very easily and convert it back to the same collection type that you initially created. Furthermore, because it's XML, you can easily edit it outside of code. i.e. just in a text editor.
See the XStream tutorial for more info.