-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobals.java
61 lines (59 loc) · 2.28 KB
/
Globals.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
public class Globals {
public static String getAbbreviation(String state) {
if (state == "Alabama") return "AL";
if (state == "Alaska") return "AK";
if (state == "Arizona") return "AZ";
if (state == "Arkansas") return "AR";
if (state == "California") return "CA";
if (state == "Colorado") return "CO";
if (state == "Connecticut") return "CT";
if (state == "Delaware") return "DE";
if (state == "District of Columbia") return "DC";
if (state == "Florida") return "FL";
if (state == "Georgia" || state == "Georgia (U.S. state)") return "GA";
if (state == "Guam") return "GU";
if (state == "Hawaii") return "HI";
if (state == "Idaho") return "ID";
if (state == "Illinois") return "IL";
if (state == "Indiana") return "IN";
if (state == "Iowa") return "IA";
if (state == "Kansas") return "KS";
if (state == "Kentucky") return "KY";
if (state == "Louisiana") return "LA";
if (state == "Maine") return "ME";
if (state == "Maryland") return "MD";
if (state == "Massachusetts") return "MA";
if (state == "Michigan") return "MI";
if (state == "Minnesota") return "MN";
if (state == "Mississippi") return "MS";
if (state == "Missouri") return "MO";
if (state == "Montana") return "MT";
if (state == "Nebraska") return "NE";
if (state == "Nevada") return "NV";
if (state == "New Hampshire") return "NH";
if (state == "New Jersey") return "NJ";
if (state == "New Mexico") return "NM";
if (state == "New York") return "NY";
if (state == "North Carolina") return "NC";
if (state == "North Dakota") return "ND";
if (state == "Ohio") return "OH";
if (state == "Oklahoma") return "OK";
if (state == "Oregon") return "OR";
if (state == "Pennsylvania") return "PA";
if (state == "Puerto Rico") return "PR";
if (state == "Rhode Island") return "RI";
if (state == "South Carolina") return "SC";
if (state == "South Dakota") return "SD";
if (state == "Tennessee") return "TN";
if (state == "Texas") return "TX";
if (state == "U.S. Virgin Islands") return "VI";
if (state == "Utah") return "UT";
if (state == "Vermont") return "VT";
if (state == "Virginia") return "VA";
if (state == "Washington") return "WA";
if (state == "West Virginia") return "WV";
if (state == "Wisconsin") return "WI";
if (state == "Wyoming") return "WY";
return null;
}
}