Best way to store Country codes, names, and Continent in Java

后端 未结 5 993
Happy的楠姐
Happy的楠姐 2021-02-03 13:30

I want to have a List or Array of some sort, storing this information about each country:

  • 2 letter code
  • Country name such as Br
5条回答
  •  故里飘歌
    2021-02-03 14:04

    using the Locale object is the best solution I can think of, you wouldn't need to store anything. But if you are using GWT try to do that on the server side, as some say you won't get it working correctly on the client side (as it gets translated to javascript) you can send them to the client in an RPC as stated before.

提交回复
热议问题