posted 17 years ago
hi, i am displaying the elements in the queue using poll method
for this i have used for loop like this
i think there is a problem with PriorityQueue.size() inside the loop
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4