Martin Vajsar wrote:The difference basically is that if you program the logic yourself, you write more code, have more code to maintain in the future and have higher probability of bugs in that code, since core JDK classes have been already proved bug-free by millions of users.
On the other hand, by doing it yourself a time or two you learn more about the building blocks of the tools you'll be using day-in and day-out later. If the OP is at the "learning about data structures" stage of his education, then it's worth slogging through it.