public static String informShipFinished(String ship, boolean isLoading) {
        return new StringBuilder(ship)
                .append(isLoading ? " has finished loading" : " has finished unloading").toString();
    }