Driver code
public static void main ( String [ ] args ) { int N = 4 ; Pair [ ] intervals = { new Pair ( 1 , 4 ) , new Pair ( 2 , 3 ) , new Pair ( 4 , 6 ) , new Pair ( 8 , 9 ) } ; maxDisjointIntervals ( intervals ) ; } }