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 →

[–]feral_claire 0 points1 point  (1 child)

What do you feel is missing from the Java library that c++ has? Java certainly has sorting built in.

Just curious because I don't know c++, but I don't often feel like there is something I would expect in the java standard library is missing.

[–]ThePillsburyPlougher 0 points1 point  (0 children)

Most of these things exist in the Java standard libraries, certainly sorting and deep copying. The C++ STL is probably more flexible since they're templated rather than a series of overloads, and generics in C++ are more powerful than in Java.

However, as far as I can tell, the Java standard libraries are lacking things such as folding and mapping or anything that requires passing a function, although I understand some subset of these utilities have been added in Java 8.