Re: how to solve this error "reference to Date is ambiguous, both class java.sql.Date in java.sql and class java.util.Date in java.util match"
Friday, August 10, 2001 06:43 AM
well, it is simple to solve. import only classes you need instead of importing the entire package. then, a reference to Date will not be ambiquous. if you need both java.sql.Date and java.util.Date then you will need to reference them by their fully qualified class name as I did above.