Get the front item from the deque.
()
| 122 | |
| 123 | /** Get the front item from the deque. */ |
| 124 | public int getFront() { |
| 125 | if(this.size == 0) { // if array is empty, return -1 |
| 126 | return -1; |
| 127 | } |
| 128 | return arr[front]; // else return the element |
| 129 | } |
| 130 | |
| 131 | /** Get the last item from the deque. */ |
| 132 | public int getRear() { |
nothing calls this directly
no outgoing calls
no test coverage detected