import java.util.List; @FunctionalInterface public interface Fleet { Truck createTruck(); interface Truck { void add(int item) throws OverloadException; boolean canAdd(int item); int getRemainingCapacity(); List getItems(); } class OverloadException extends RuntimeException { public OverloadException() { super("Capaciteit van voertuig overschreden."); } } }