How to Calculate Distances in Java

Java Assignment Details The file townpairs.dat contains selected city pairs and their distances. Each line of the file contains 2 city names and a distance. Write a program to calculate the shortest path between any given city pair. How to Solve Such Java Problems We obviously have to...