1. Introduction
rearanging array of size N into ascending order
test client code: Insertion.sort(a);
sort any datatype
callback
callback = reference to executable code
i.e. passing functions as argument to sort() method
sort() function calls object's compareTo() method
→ implement the Comparable interface:
public class XX implements Comparable<XX …



semi-structured data: apply schema after creating data.