I'm trying to make a linked list in Java, but there is an issue.
I thought that Link
is in java.util.Link
,but when I tried to do something like
Link nextLink;
Eclipse wanted to
import sun.awt.image.ImageWatched.Link;
I think that this import is different from what I expect and if I import java.util.Link
it gives error.
采用
import java.util.LinkedList;
Do you need something like this?
import java.util.LinkedList;
public class LinkTest {
private LinkedList<Object> list = new LinkedList<Object>();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.