
March 15th, 2001, 08:17 AM
|
|
Contributing User
|
|
Join Date: Feb 2001
Location: Colorado
Posts: 46
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
This just means that you have inported both java.awt.List and java.util.List and the compiler does not know which one you are trying to use when you specify "private List ..."
You are probably importing java.awt.* and java.util.* so you are getting both List classes from the two different packages. There are two ways of fixing this:
One, import only the classes you need instead of the whole package. EG - import java.util.List; instead of import java.util.*;
Two, specify the entire package name when you declare your List object. If you are really trying to use java.util.List and NOT java.awt.List try: "private java.util.List ..." instead of "private List ..."
Hope that helps.
__________________
- MW
|