// Prints list data public void printList() { RFCLink currentLink = first; System.out.print("List: "); while (currentLink != null) { currentLink.printLink(); currentLink = currentLink.nextLink; } System.out.println(""); }
// Inserts a new Link at the first of the list public void insert(String rfc_title, String rfc_number, String hostname_peer) { RFCLink link = new RFCLink(rfc_title, rfc_number, hostname_peer); link.nextLink = first; first = link; }