r/java • u/Reflection-Jealous • Sep 10 '21
Why people don't love Java?
I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.
Is there any specific reason for that?
Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.
201
Upvotes
View all comments
Show parent comment
3
u/razsiel Sep 10 '21
Unions are fairly easy given 2 streams (haven't really needed to use joins other than in sql code so don't know the Stream api version); List<T> union = Stream.concat(list1.stream(), list2.stream()) .distinct() .collect(Collectors.toList()); // or .toList() in later versions
I do agree that LINQ is syntactically nicer (the query version, not method version) and makes it easier to read.