public boolean isEmpty(){
  return (intervals.length == 0);
}

public boolean isEmpty ( ) { return ( intervals . length == 0 ) ; }
returns true is the interval is empty ( no elements ) , false otherwise
