Re: ArrayList.Iterator.remove()
Donkey Hottie wrote:
I was aware of the Collections, with ArrayList, but not *LinkedList*.
It's a late addition, and I have moved out from Java 1.4.2 only
lately... Now using Java 6.
Lew wrote:
Yeah, it wasn't introduced until Java 1.2, ten and a half years ago.
Patricia Shanahan wrote:
This sort of issue is one of the reasons why I read this newsgroup
regularly. It is especially valuable for a solo programmer. I know a lot
of things exist because people have asked questions about them, or they
have been recommended as solutions.
You make a very good point. However, the collections classes are
among the Java features that are quite fundamental, and when working
with such things as collections one should be in the habit of
reviewing the Javadocs to see what exists already. For one accustomed
to using the Javadocs it would be quite clear after having been
alerted to the existence of a decade-old API that the class is not
new, even if they didn't discover the class until having been alerted
to it.
Usenet is useful, but not the best as the primary source of Java
knowledge, let alone the only one. To achieve competence in Java
programming, let alone virtuosity, one must be in the habit of reading
the Javadocs, the tutorials, search engine results, and yes, even
books. It helps to be aware of third-party library sources, too, like
Apache Commons (which has even more collections classes), sourceforge
and the like.
LinkedList, HashMap, java.util.Collections and other such have been
officially part of the Java API since 1998. Like, say, large parts of
the java.io and javax.swing packages, there's precious little reason
for a professional Java programmer not to be at least aware of their
existence, nor to think that they're brand new.
--
Lew