public void Enqueue(int value){
node end = endList.next;
end.next=null;
endList.data=value;
endList.next=end;
endList=end;
Here is my code for an Enqueue method but when I run it
mylist.Enqueue(12);
It gives me an error. Is something wrong with my method or am I testing it incorrectly? Thanks.