JAVA
Using the data files below:
Write a program called DISTSH that:
Reads the list of cities into a string array usingStdIn.readAllStrings() and then builds a symbol table where the keyis the name of a city and the value is an integer from 0 to thenumber of cities minus one. The first city gets 0, the second gets1, and so forth.
Reads the list of major cities into a string array usingStdIn.readAllStrings().
Creates an empty undirected graph using the class algs41.Graph.In this graph, each vertex represents a city. As we discussed, thevertices of an undirected graph are labelled with non-negativeintegers. When the vertices represent real
PayPal Gateway not configured
PayPal Gateway not configured