can u people help me out this problem pls

I came across very differemt problem.

I import two packages

import java.util.*;

import java.sql.*;

both the packages are required for my program and in both pakages, there is definition of date class. Now I am making an instance of date class the following error is displayed on compiling the program:

punch_server.java:94: reference to Date is ambiguous, both class java.util.Date

in java.util and class java.sql.Date in java.sql match

Date dd = new Date();

^

punch_server.java:94: reference to Date is ambiguous, both class java.util.Date

in java.util and class java.sql.Date in java.sql match

Date dd = new Date();

^

[701 byte] By [virgo_rohita] at [2007-10-1 22:40:32]
# 1
hi! rohit give the full ref. of Date class u r using . eg. if u r using java.Sql Date class then use it as java.Sql.Date. simillarly with lang package
rahul_yadava at 2007-7-13 14:42:58 > top of Java-index,Java Essentials,Java Programming...
# 2
Thank you very much sir. Its working alright.
virgo_rohita at 2007-7-13 14:42:58 > top of Java-index,Java Essentials,Java Programming...