#Exception from different folder in src not importing

1 messages · Page 1 of 1 (latest)

ruby shuttle
#

I have tried at the top to put import.--- but it still has red text.

spice slateBOT
#

This post has been reserved for your question.

Hey @ruby shuttle! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

ruby shuttle
#
package srg.ship;

import srg.exceptions.InsufficientCapcaityException;
import srg.resources.ResourceContainer;

import java.util.List;

public class CargoHold extends Room{

    private int maximumCapacity;
    private List<ResourceContainer> resources;

    public CargoHold(RoomTier tier) {
        super(tier);
        this.maximumCapacity = maximumCapacityFinder(tier);
    }
    public int maximumCapacityFinder(RoomTier tier) {
        if (tier == RoomTier.BASIC) {
            return 5;
        } else if (tier == RoomTier.AVERAGE) {
            return 10;
        } else {
            return 15;
        }
    }
    public int getRemainingCapacity() {
        return getMaximumCapacity() - resources.size();
    }
    public int getMaximumCapacity() {
        maximumCapacityFinder(this.getTier());
        return this.maximumCapacity;
    }
    public List<ResourceContainer> getResources() {
        return resources;
    }
    public void storeResource(ResourceContainer resource) throws
            InsufficientCapcaityException {

    }
}