public void addLast(int item) {
// create a new node
Node nn = new Node();
nn.data = item;
nn.next = null;
//attach
if(this.size >= 1) {
this.tail.next = nn;
//summary object
if(this.size == 0) {
this.head =nn;
this.tail = nn;
this.size++;
}else {
this.tail = nn;
this.size++;
}
}
}
AddLast isnt working
close this if loop here