As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
Options

Solved

exisexis Registered User regular
edited May 2007 in Help / Advice Forum
read through some javadoc and realised i completely missed the sort method >.>

lock thread plz

exis on

Posts

  • Options
    ecchiecchi Registered User regular
    edited May 2007
    Do you have to implement the sort yourself (ie for a class project) or do you just need them sorted? There are a bunch of different algorithms you can use in either case. As far as Java libraries go this page seems to have you covered. If you need to do it yourself, look up algorithms like "quicksort", "insertion sort" and "heap sort" for some pretty basic ones. An insertion sort is oddly appropriate for this situation because a common metaphor it is sorting a hand of cards.

    ecchi on
This discussion has been closed.