You might want to consider making a Country class to hold this data, and then maintaining a list/array of instances of this class.
public class Country {
private int continentId;
private String name;
private String capital;
public Country(int continentId, String name, String capital) {
this.continentId = continentId;
this.name = name;
this.capital = capital;
}
// ...
}
You would then have something along the lines of
List<Country> countries = new ArrayList<Country>();
countries.add(new Country(123, "USA", "Washington DC"));
...
List<Country>whereCountryis an object containing the data for each country. Possibly aMap<String,Country>if you need to search by country name. I'm not sure what you mean by 2D in this context. Can you please clarify?