Design Patterns Java™ Workbook

(Michael S) #1
Appendix B. Solutions

SOLUTION 6.4.......................................................................................................................................

Figure B.8 shows one solution.


Figure B.8. The line forms at the rear: Objects enqueue at the tail of the list; dequeued
objects come from the "head" of the list, at index 0.
Free download pdf