Is there a Util to convert US State Name to State Code. eg. Arizona to AZ?

前端 未结 8 597
灰色年华
灰色年华 2020-12-14 16:32

I need to convert full state name to its official state address code. For example from the String New York, I need to produce NY. Now I could put this all in a hashmap, bu

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 17:01

    I don't think so (At least I never heard of it). But you can always use a dictionary to accomplish that.

提交回复
热议问题