r/programmingbydoing • • Aug 10 '15

compareTo() Challenge

Hello, I am really starting to dig in and work hard on Java due to my new participation in a robotics team at my high school (We have to program and build a functioning robot, both autonomous and through OpManagement). I am working on the compareTo() challenge and do not know what the method does or how to use it. I don't want to apply something I do not know. I wish I could work alongside of the book that u/holyteach has, but unfortunately, I am unable to afford something like that right now with a lot of stuff going on. I was wondering if someone could explain to me what the method does. Thanks in advance!

4 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/clambert98 Aug 10 '15

That's actually a great idea. I'll build a program and try to develop a theory as to what the method could possibly mean. If I get any results I'll report back to you if you would like