Ask Question

Write a program that takes two stations as input from the user and calculates a route between the two stations. Your program must read the transport information from data. txt and initialize each line. In your program you could think about presenting a line as an object of class Line which has the methods listed below, and TransitSystem which keeps track of the Lines and uses them to find the route. To simplify, assume trains only run in one direction and you can only transfer once.

+3
Answers (1)
  1. 27 July, 16:19
    0
    code: import java. io.*; import java. util.*; / / Driver Class public class Driver { public static void main (String ... args) throws Exception { Scanner in = new Scanner (System. in); / / to
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program that takes two stations as input from the user and calculates a route between the two stations. Your program must read the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers