A queue is FIFO—First In, First Out
Queue<string> myQueue = new Queue<string>();
myQueue.Enqueue(“first in line”);
A stack is LIFO - Last In, First Out
Java: I guess there is similiar data type, but I've never used them .
Queue<string> myQueue = new Queue<string>();
myQueue.Enqueue(“first in line”);
A stack is LIFO - Last In, First Out
Java: I guess there is similiar data type, but I've never used them .
Comments
Post a Comment