public Queue() { queueData = new SinglyLinkedList();//this actually allocates memory }
//constructor public Stack() { // This allocates memory. stackData = new SinglyLinkedList(); }