diff --git a/src/Street.java b/src/Street.java index b76bcc2..b8d3ffd 100644 --- a/src/Street.java +++ b/src/Street.java @@ -56,11 +56,10 @@ public class Street { return true; } - public void addVehicle( Vehicle vehicle ) { - if(capcity()>0) { - for(int i=0;i 0) { + //adds incoming vehicle in last. + vehicles.add(vehicle); } //TODO Ammar i hope that }