Gotchas in Java
These are some pitfalls that took me some time to unravel.
I used to think .collect(Collectors.toList()) and .toList() are same and interchangeable.
But first one creates a mutable list and second one creates a immutable list
List<Integer>...
kcterala.hashnode.dev1 min read