diff --git a/Route.java b/Route.java index 3e822a9..c489cc2 100644 --- a/Route.java +++ b/Route.java @@ -47,8 +47,8 @@ public class Route { public int getRouteSelected() {return routeSelected;} - public float estimateTolls(Vector route) { - float runningTolls = 0; + public double estimateTolls(Vector route) { + double runningTolls = 0; for (String[] el : route) { runningTolls += Double.parseDouble(el[3]); }