commaSeparated

public static CodeLines commaSeparated(List<CodeLine> lines)

Merges lines by addition of a comma to each line except the last one.