- B Implement Generic Class Arrayqueue As Discussed In The Lectures Having Following Methods Constructor Copy Construc 1 (36.56 KiB) Viewed 41 times
(B) Implement generic class ArrayQueue as discussed in the lectures having following methods: constructor, copy construc
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
(B) Implement generic class ArrayQueue as discussed in the lectures having following methods: constructor, copy construc
(B) Implement generic class ArrayQueue as discussed in the lectures having following methods: constructor, copy constructor, offer, poll, peek, isEmpty, reallocate(private), iterator. Inner class Iter that implements interface Iterator having methods: constructor, hasNext, next. Also add following methods to the ArrayQueue class: size: returns number of elements in the queue. contains: Search an element in the stack. If found returns true, else returns false. clear: Deletes all elements of the stack and make it empty stack.