class CSVConverter {

    public static String convertTable(final List<List<String>> table) {
        if (table == null) {
            return "";
        }
        return table.stream()
                    .map(CSVConverter::convertRow)
                    .collect(Collectors.joining("\n"))
                    .toString();
    }

}