CSD201_-_FEB5_-_FA_2023_1291.webp
S

CSD201_-_FEB5_-_FA_2023_1291.webp

(Choose 1 answer)
Specify the correct implementation of dequeue() method of a queue. This queue uses java.util.LinkedList for storing data and the head of the list is treated as the head of the queue. (Choose the most suitable one)
A. Object dequeue(){ if (isEmpty()) return(null);return(pool.removeFirst());
}
B. void dequeue(Object x){ if (isEmpty()) return(null);pool.remove(pool.size()-1);
}
C. Object dequeue(){if (isEmpty()) return;return(pool.remove(pool.size()-1));
}
D. Object dequeue(){ if (isEmpty()) return(null);return(pool.removeLast());
}
vato
fini

25

Thông tin

Category
CSD201
Thêm bởi
silver_moon
Ngày thêm
Lượt xem
3,188
Lượt bình luận
31
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_FEB5_-_FA_2023_1291.webp
File size
51.9 KB
Dimensions
1286px x 626px

Share this media

Back
Bên trên Bottom