mydoubt:::why did the elements in the list are not in sorted order??i feel silpa and swati should be interchanged.so that they will be in sorted order. i understood the functionality of poll() and peek()..my doubt is in what order the elements are printed in case of strings if we print the whole collection that is queue.
Kelvin Chenhao Lim
posted 8 years ago
Hi there, Please don't cross-post the same question to multiple forums. Your question has been answered in the SCJP forum.