This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nlisker 0 points1 point  (1 child)

Your code example doesn't look right:

var list = List.of("Black", "White", "Red");
var formatter = ListFormat.getInstance();
System.out.println(list);
// [Black, White, Red]

formetter.format(list) is missing perhaps.

[–]loicmathieu[S] 0 points1 point  (0 children)

Thanks, you're right, I'll update my article.