Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Originally posted by Ulf Dittmer: No. But they both extend AbstractList, so you can typecast to that.
True, but note that AbstractList's public methods are precisely the same as List's, so I would more likely write:
On the other hand, I think the OP wanted to *cast* ("convert*) an existing ArrayList to a Vector: you can't do that, but you can create a new Vector that holds copies of the references found in the ArrayList:
Note that v != arrayList, although v.equals(arrayList).
Of course, in the best of all possible worlds, just being of type List should suffice!