Static methods are not necessarily bad - it depends only on the context in which they are used. Examples from the top of the head where this occurs:
File.separator;
Now the case when you just apply your listutils has already been considered (see other answers), however you can do more, for example:
class SortedList implements List<T>
When all the added elements are automatically sorted in place - as such, it does not make sense for the element to be static, because you want the results to be stored in this instance. If you try this under eclipse, you will find that you need to override many methods, including add and addAll , which will be equivalent to merge .
So, I would say it depends on what you do in the end and how the object should act.
user257111
source share