Forums Register Login

Thread - TreeSet Iterator

+Pie Number of slices to send: Send


It's giving compile error. Can somebody please tell me what would be the exact metoh of TreeSet iterator in this case?
[ June 26, 2005: Message edited by: Sangita Mishra ]
+Pie Number of slices to send: Send
The TreeSet class does not have a method 'next', you need to call the method 'next' on the Iterator object. Check the API at,
TreeSet API

You need to make the following change for our code to compile, and show meangingful results,
brevity is the soul of wit - shakepeare. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 766 times.
Similar Threads
Another question from mock exam
Collections
Marcus Green's Mock Exam 1 Question.
Will Collection class methods come in SCJP1.4 exam?
what's the error?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:26:46.