With this task, you are creating a properties file that contains a set of states and a set of cities for each state. This file acts as the database for the application for simplicity's sake.
Expand the plotCity node and right-click on the Source Packages node.
Select New > Java Package.
Enter plotCity as the package name.
Click Finish.
Right-click on the project in the Projects window and choose New > Other
In the New File dialog, select Other from the Categories pane.
Select Properties File from the File Types pane.
Click Next.
Enter cities in the File Name field.
Click Finish.
Select plotCity/src/java/plotCity as the location of the properties file.
Copy the following content to the cities.properties file:
AK=Anchorage,Fairbanks,Juneau,Nome AZ=Mesa,Phoenix,Scottsdale,Tucson CA=Los Angeles,Sacramento,San Diego,San Francisco OR=Bend,Eugene,Portland,Salem WA=Olympia,Seattle,Spokane,Tacoma
Save the file.