Suggested for Further Study

  1. The collections framework defines a number of principles through which the framework itself makes development easier. Take any two of these principles and describe them in your own words. Give examples where applicable.

  2. Update SortExample to use a ListIterator for traversal. Provide methods for displaying the list in backward and forward order.

  3. Update DOMList to be a real list. That is, implement the unsupported methods. You will need to map the DOMList back to its underlying parent document and make sure that any operations on the DOMList are applied to the parent.

  4. The sort methods in DOMCollectionUtilities.java are not quite correct in that they operate almost exclusively on ELEMENT_NODE elements. As we saw in Chapter 4, ELEMENT_NODEs can be almost terminal, in that they can have a single child node of type ELEMENT_TEXT which represents their actual content. Add three new Comparator methods that act on the children of ELEMENT_NODEs and sort based on the content of those children.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.187.103