--- Nathan Meyers <[EMAIL PROTECTED]> wrote:
> "±è¿µºÀ" wrote:
> 
> > [Image]Hi,
> >
> > I import java.util.* and java.sql.*;
> >
> > And I use Date class..
> >
> > At Compile time, error is.
> >
> > error is below.Can anybody help me.
> >
> > Ambiguous class: java.util.Date and java.sql.Date
> > private Date[] getAbsenceDate(String condition) {
> 
> Because you import two packages with a "Date" class,
> you should use the fully qualified class name
> (java.util.Date or java.sql.Date) to describe
> which one you want to use.
> 
> Nathan

You can also do something like the following:

import java.util.*;
import java.sql.*;
import java.sql.Date;

At the top of your class.  This will cause all
unqualified use of Date in your code to resolve to
java.sql.Date.


=====
Weiqi Gao
[EMAIL PROTECTED]



__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to