I use a mass import class group as below:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
import java.io.*;
import java.text.*;
import java.util.regex.*;
This way I don't have to worry about leaving any classes out.
Then when I used List
I got this error:
reference to
List
is ambiguous, both classjava.util.List
injava.util
and classjava.awt.List
injava.awt
match
How do I fix this? Is there a way to deport one of the classes? Which one is better?