Get the last item from the deque.
()
| 130 | |
| 131 | /** Get the last item from the deque. */ |
| 132 | public int getRear() { |
| 133 | if(this.size == 0) { // if array is empty, return -1 |
| 134 | return -1; |
| 135 | } |
| 136 | return arr[rear]; // else return the rear |
| 137 | } |
| 138 | |
| 139 | /** Checks whether the circular deque is empty or not. */ |
| 140 | public boolean isEmpty() { |
nothing calls this directly
no outgoing calls
no test coverage detected