Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个基于引用的链接列表,任何人都可以为我提供一个示例?
这不是一个答案,但以下域类应该让你开始:
public class Element{ private Object objectLink; private Element nextElement; private Element previousElement; // Getter and setter methods here }
您需要添加的是一个允许添加、删除和检查列表状态(空、大小等)的类。