//clear all the values in the current linked list public void clearObjLL() { objNode currNode = head; //used to iterate through the linked list' while (currNode != null) { currNode.clearAverage(); currNode.clearStudents(); currNode.setTotalStudents(0); currNode.setWeightedAverage(0.0); currNode = currNode.getNextObjNode(); } }
//sets the tail of the list to a node public void setTail(objNode tail) { this.tail = tail; }
//sets the head of the list to a node public void setHead(objNode head) { this.head = head; }
private objNode tail; //tail of the objective node linked list //constructor for the objective node linked list public objNodeLL() { head = null; tail = null; }