In the following code, I get an error from the compiler on the last line that says: \'the type List is Ambiguous\' (on the line that attempts to define cgxHist list). What
The problem is that there is a List class in both the java.awt and the java.util package, and as you are importing all classes in those packages, the compiler doesn't know which one you mean.
So you should either not use the asterisk to import all classes at the same time (just import the ones you actually need) or instead of List write java.util.List