This commit is contained in:
Abhinandan Padmakar Pandey
2021-10-08 22:02:34 +05:30
committed by GitHub
parent 4a8357651d
commit 9b38ecdfa6
3 changed files with 18 additions and 18 deletions

View File

@ -38,7 +38,7 @@ public class LinkedQueue {
/**
* Check if queue is empty
*
* @return <tt>true</tt> if queue is empty, otherwise <tt>false</tt>
* @return true if queue is empty, otherwise false
*/
public boolean isEmpty() {
return size == 0;
@ -48,7 +48,7 @@ public class LinkedQueue {
* Add element to rear of queue
*
* @param data insert value
* @return <tt>true</tt> if add successfully
* @return true if add successfully
*/
public boolean enqueue(int data) {
Node newNode = new Node(data);