Forums Register Login

What is wrong with this code?

+Pie Number of slices to send: Send
Ok

I am not having the best of days and I don't want to see any more errors.

Compiler Output

Code Where Errors are Located


Class being stored in the vectors elements
+Pie Number of slices to send: Send
The get() method of the Vector class returns an instance of class Object, you will need to cast this into an instance of Record before you call the getValue() method of the Record class.
+Pie Number of slices to send: Send
how would I be able to do that???
+Pie Number of slices to send: Send
Along the lines of
+Pie Number of slices to send: Send
Is this a class assigment where you have to write your own sort routine? If so, then ignore the rest of my message. However, if you aren't required to write this routine, you should use Collections.sort() instead.

Layne
Yeah, but is it art? What do you think tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 893 times.
Similar Threads
Unnecessary Synchronization
Printing an Object without casting!
Alternatives to java.util.Properties?
How to exclude empty values from a Vector
Behaviour HashMap
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:10:51.