public class IntList implements Cloneable
{
IntNode b = new IntNode(); // A reference to IntNode
private IntNode head; //Reference to first node of the linked list
private IntNode tail; //Reference to the last node of the linked list
private IntNode currentIndex; //Reference to node with current element
private IntNode preIndex; //Reference to node before the current element
private int manyNodes; //Number of nodes in the linked list
// Student's invariant here
public IntList() { //Creates an empty linked list
head = null;
tail = null;
currentIndex = null;
preIndex = null;
manyNodes = 0;
}
}
此代码产生错误“错误:解析时达到文件末尾”,我不确定为什么因为所有曲线括号都匹配