The java.awt.List and java.util.List conflict you have found is
in my opinion a VERY unfortunate oversight on the part of Sun.
It's one example of some lack of coordination in designing the
class layout of java. So yes, it's fine that you declared a
variable as:

java.util.List foo;

Generally, for my own sanity, I only import the specific classes I need
from either java.awt.* or java.util.*, whichever I need fewer from.
That saves me having to worry about it.

Good luck.

-Will


At 4:45 PM -0700 5/2/99, Riyad Kalla wrote:
I am not sure if this is an error, or my lack of knowledge.

But when you import java.util.*; and java.awt.*; and use the List class, the List class from .awt conflicts with the List interface from .util, so I had to specify "java.awt.List" which I've never had to do before.. is this an error, or just one of those unavoidable things you run into when you are a master 1st year programmer like myself? :)
--
(: Riyad Kalla :)
(: [EMAIL PROTECTED] :)
(: CS Major :)
(: University of Arizona :)






___________________________________________
Will Koffel Course 21M
(617) 225-6428 ~*_*~
[EMAIL PROTECTED] Course 6
MIT '00 http://web.mit.edu/wkoffel/www
-------------------------------------------


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

Reply via email to