Question: Java homework. Thank you import java. io. File; import java. util. LinkedList; import java. util. Scanner; Roads are one-way streets linking intersections ee Intersection class
Java homework. Thank you

import java. io. File; import java. util. LinkedList; import java. util. Scanner; Roads are one-way streets linking intersections ee Intersection class Road //measured in seconds float travelTime; Intersection destination; //where the road goes Intersection source; /ame of road is source-destination //where the comes from Intersections join roads see Road class Intersection String name; LinkedList Road outgoing LinkedList Road incoming new LinkedList Road () ; new LinkedList Road () ; Bug: multiple types of intersections (uncontrolled, stoplight) RoadNetwork, the main class to build a network of roads and intersections see Road ee Intersection k/ public class RoadNetwork public static void main (String[] args) [ //Bug: Must add code to see if there is a file name Scanner scnew Scanner ( new File( args[0]) // Bug: What if the file doesn' t exist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
