Demo entry 6682348

111

   

Submitted by anonymous on Dec 08, 2017 at 06:16
Language: Java. Code size: 226 Bytes.

public void addToLast(Student stu){
    Node insertNode = new Node(stu, null);
    this.tail.setNext(insertNode);
    this.tail = insertNode;
    this.setSize(this.getSize() + 1);
    System.out.println("Info: 添加成功.");
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).