Stop show with sound  Next slide in show -- Keyboard shortcut: 'n'  1 minute, 43 secondsLecture 11 - slide 24 : 35
Program 2
import java.util.*;

public class NameSort {
  public static void main(String args[]) {
    Name n[] = {
       new Name("John", "Lennon"),    new Name("Karl", "Marx"),
       new Name("Groucho", "Marx"),   new Name("Oscar", "Grouch")
    };
    List l = Arrays.asList(n);
    Collections.sort(l);
    System.out.println(l);
  }
}