Ask Question
20 September, 03:37

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.

+4
Answers (1)
  1. 20 September, 07:36
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers