0

Java has a List.of​(E... elements) which can accept zero or more elements. Then, what is the point of other List.of methods overloaded to accept zero to ten elements? To me, they seem to be redundant and therefore should be deprecated unless I am missing some important concept.

Beginner
  • 164
  • 9

0 Answers0