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 float estimateTolls(Vector<String[]> route) {
float runningTolls = 0;
public double estimateTolls(Vector<String[]> route) {
double runningTolls = 0;
for (String[] el : route) {
runningTolls += Double.parseDouble(el[3]);
}