corrected types in estimateTolls
This commit is contained in:
parent
036b6f63da
commit
d986baf0ab
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue