Re: Suduko solver demo



On 28 Dec 2005 07:43:29 -0800, bherbst65@xxxxxxxxxxx wrote, quoted or
indirectly quoted someone who said :

> /* Used to sort the cells in order of remaining possibilities. */
> private class CellComparator implements Comparator {
> public int compare(Object o1, Object o2) {
> Cell c1 = (Cell)o1;
> Cell c2 = (Cell)o2;
> return c2.digitRuledOutCount - c1.digitRuledOutCount;
> }

see http://mindprod.com/jgloss/comparator.html
for how to generify this code to get rid of the error messages.

see also http://mindprod.com/jgloss/generics.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Problem with my internet and etc..?
    ... You say " you had the Sasser Worm", Did you get rid of it?? ... What error messages if any are you getting? ... > have a problem with explorer though. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: help disabling spyware or adware
    ... Sounds like you got rid of the Spyware but there's still code to start it ... and since its not there you're getting the error messages. ... Also try START, RUN, MSCONFIG, and search the Startup tab for those same ... > Unable to load program resources ...
    (microsoft.public.windowsxp.help_and_support)
  • Error messages on startup
    ... I deleted a bunch of stuff with spybot and ... thats about when I got the error messages so apparently ... for getting rid of this stuff are so far beyond me ... >downloading the service pack made it so that I had to ...
    (microsoft.public.windowsxp.general)
  • Re: Servlet or filter or something to remove whitespace?
    ... It collapses CrLf to Lf and gets rid of lead/trail space on each line. ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.programmer)
  • Re: Nwe kernel and dmesg question
    ... >>Hey Peter, ... >>To get rid of the error messages on boot up, ...
    (freebsd-questions)