Skip to content
Snippets Groups Projects
Commit 3765e1d0 authored by Goik Martin's avatar Goik Martin
Browse files

Using implementation

parent a1c14d64
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,6 @@ public class Driver {
,new Segment(0.8, 30)
};
double duration = 0; // Time in hours
for (final Segment s : route) {
duration += s.distance / s.speedLimit;
}
final long fullMinutes = Math.round(60 * duration);
System.out.println("Minimal duration:" + fullMinutes);
System.out.println("Minimal duration:" + Segment.duration(route, 80));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment