corrected types in estimateTolls

This commit is contained in:
Fennel Kora 2024-04-14 01:20:38 -04:00
parent 036b6f63da
commit d986baf0ab

View file

@ -47,8 +47,8 @@ public class Route {
public int getRouteSelected() {return routeSelected;} public int getRouteSelected() {return routeSelected;}
public float estimateTolls(Vector<String[]> route) { public double estimateTolls(Vector<String[]> route) {
float runningTolls = 0; double runningTolls = 0;
for (String[] el : route) { for (String[] el : route) {
runningTolls += Double.parseDouble(el[3]); runningTolls += Double.parseDouble(el[3]);
} }