ArrayList and remove()
In class today we were learning about ArrayLists, and I thought of something. Would appending methods to the end of a .remove() element still work? For example:
Is that okay or would I have to do:
temp = list.remove(index);
Try it and see! Or read the API documentation for that version of remove(). If it is documented to return something with an exampleMethod() then there is no reason why you can't call it.
(This sort of chaining method calls together can become difficult to read - as evidence look around here for people who dump reams of NetBeans layout code.)