Ask Question
27 December, 00:54

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.

+2
Answers (1)
  1. 27 December, 04:35
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers