Commit c7c76d8f authored by Théo GORDYJAN's avatar Théo GORDYJAN

Modify Vehicle class

parent 6f0e73dc
......@@ -157,9 +157,7 @@ public class Vehicle {
return price;
}
else{
/*while (index < options.size()){
price = options.Stream.forEach(o -> o.getPrice);
}*/
// price = options.Stream.forEach(o -> o.getPrice);
price = options.stream().collect(Collectors.summingDouble(Option::getPrice));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment