From roberthpike at yahoo.com Tue Jul 3 12:45:46 2007 From: roberthpike at yahoo.com (Robert Pike) Date: Tue, 3 Jul 2007 12:45:46 -0700 (PDT) Subject: [kw-pm] Java Message-ID: <542754.91182.qm@web58707.mail.re1.yahoo.com> I don't know if this is like going to a electrician conference to ask a question about plumbing or not but here goes. Does anyone here have any experience sorting arrays within Java? I have 4 arrays, 2 with names, 2 with double values (a.k.a. dollar amounts). Each value from the names array has a corresponding value in the dollar amount array (1 name-dollar amount pair is for one year and the other pair for another year). I need to sort the 2 pairings by the dollar amounts. Lose anyone yet? I'm "trying" to utilize TreeSet and Comparator classes but if I have 2 values that are the same I lose the second one (i.e. January 2000 - 0.00, March 2000 - 0.00 I end up getting only January 2000 afterwards). Anyone have a clue about anything I've written I'd appreciate some feedback. ____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 From kw-pm at datademons.com Tue Jul 3 14:55:48 2007 From: kw-pm at datademons.com (Justin Wheeler) Date: Tue, 3 Jul 2007 17:55:48 -0400 (EDT) Subject: [kw-pm] Java In-Reply-To: <542754.91182.qm@web58707.mail.re1.yahoo.com> References: <542754.91182.qm@web58707.mail.re1.yahoo.com> Message-ID: I'd say it's more like asking about OPEC at a bicycling enthusiast meeting. (Read: I haven't a clue.) Justin On Tue, 3 Jul 2007, Robert Pike wrote: > I don't know if this is like going to a electrician > conference to ask a question about plumbing or not but > here goes. Does anyone here have any experience > sorting arrays within Java? I have 4 arrays, 2 with > names, 2 with double values (a.k.a. dollar amounts). > Each value from the names array has a corresponding > value in the dollar amount array (1 name-dollar amount > pair is for one year and the other pair for another > year). I need to sort the 2 pairings by the dollar > amounts. Lose anyone yet? I'm "trying" to utilize > TreeSet and Comparator classes but if I have 2 values > that are the same I lose the second one (i.e. January > 2000 - 0.00, March 2000 - 0.00 I end up getting only > January 2000 afterwards). Anyone have a clue about > anything I've written I'd appreciate some feedback. > > > > ____________________________________________________________________________________ > Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. > http://answers.yahoo.com/dir/?link=list&sid=396545433 > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From abez at abez.ca Tue Jul 17 07:53:16 2007 From: abez at abez.ca (Abram Hindle) Date: Tue, 17 Jul 2007 10:53:16 -0400 Subject: [kw-pm] [Fwd: [Cs-grads] Computer Science Club Seminar Tuesday July 17, 2007 - Bjarne Stroustrup] Message-ID: <469CD7DC.2070003@abez.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - -------- Original Message -------- Subject: [Cs-grads] Computer Science Club Seminar Tuesday July 17, 2007 - Bjarne Stroustrup Speaker: Prof. Bjarne Stroustrup Designer and original implementer of C++ Title: C++0x - An Overview Date: Tuesday, July 17, 2007 Time: 7:00 pm Location: Arts Lecture 116 Abstract: A good programming language is far more than a simple collection of features. My ideal is to provide a set of facilities that smoothly work together to support design and programming styles of a generality beyond my imagination. Here, I briefly outline rules of thumb (guidelines, principles) that are being applied in the design of C++0x. Then, I present the state of the standards process (we are aiming for C++09) and give examples of a few of the proposals such as concepts, generalized initialization, being considered in the ISO C++ standards committee. Since there are far more proposals than could be presented in an hour, I'll take questions. _______________________________________________ Cs-grads mailing list Cs-grads at lists.uwaterloo.ca https://lists.uwaterloo.ca/mailman/listinfo/cs-grads ** ACCEPT: CRM114 PASS osb unique microgroom Matcher ** CLASSIFY succeeds; success probability: 1.0000 pR: 48.8455 Best match to file #0 (/home/abez/crm/nonspam.css) prob: 1.0000 pR: 48.8455 Total features in input file: 4168 #0 (/home/abez/crm/nonspam.css): features: 656262, hits: 25078893, prob: 1.00e+00, pR: 48.85 #1 (/home/abez/crm/spam.css): features: 8318771, hits: 15264666, prob: 1.43e-49, pR: -48.85 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGnNfcnOrfa1yW8IURArrfAKCDmI02BUQZJ/yDNpEzftvD50RvGACgqSK6 G78wRXSVKpT0589qA4erB2E= =tspb -----END PGP SIGNATURE----- From elbie at trig.net Wed Jul 18 11:02:07 2007 From: elbie at trig.net (Christopher Calzonetti) Date: Wed, 18 Jul 2007 14:02:07 -0400 Subject: [kw-pm] Reminder: July's kw.pm meeting Message-ID: <20070718180207.GA94147@trig.net> Just a reminder that July's kw.pm meeting is tomorrow, Thursday the 19th of July. Come and join us! fishbot will present 10 ways to see what Perl is up to. Some are just fun or informative, others have day to day practical utility. What does your regex look like when compiled? How much space is my data structure occupying? Please note that tomorrow's meeting will not be in the usual place. Instead it will be in the Math and Computers building at the University of Waterloo, near the centre of the fifth floor, in room MC5136. -- Christopher Calzonetti, Technical Lead, Trig.Net Web: http://www.trig.net/ Mail: mailto:chris at trig.net