From d986baf0ab8149e06c31aab2aa3a87e49539db8f Mon Sep 17 00:00:00 2001 From: Fennel Kora Date: Sun, 14 Apr 2024 01:20:38 -0400 Subject: [PATCH] corrected types in estimateTolls --- Route.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); }