public NSDate(Date d){
  if (d == null)   throw new IllegalArgumentException("Date cannot be null");
  date=d;
}

public NSDate ( Date d ) { if ( d == null ) throw new IllegalArgumentException ( "Date cannot be null" ) ; date = d ; }
creates a nsdate from a java date
