CHAPTER 112 — Sorting an Array of Object References
Generally, data is larger than the primitive data types discussed in the previous two chapters.
Often, the cells of an array are filled with references to objects.
This chapter discusses sorting an array of references to
- Lexicographic Order
- compareTo() method
- Arrays of object references
- Sorting an array of String references
- Sorting an array of references to a Programmer-defined Class
Sort the above array of strings. Use selection sort.