Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Using Java Classes to Sort a Small Array Quickly Date: Thu, 01 Sep 2011 02:43:13 -0700 Organization: Canadian Mind Products Lines: 27 Message-ID: References: <86c4a53b-1ca1-48a8-b954-c01bd449278a@s35g2000prm.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7520 On Thu, 01 Sep 2011 00:25:04 -0400, Eric Sosman wrote, quoted or indirectly quoted someone who said : > Either your looking was extremely cursory, or you haven't learned >how to look. I'm not sure how you found Collections.sort, but *if* >you had opened the Javadoc, gone to the "S" index page, and hunted for >the word "sort," you'd have found Arrays.sort right next door to it. Here are three techniques to see if Java has some built-in capability. You need an indexing tool like Copernic to find plausible method names in the JavaDoc that you can download and insert in the JDK. Alternatively you can use a tool like Funduc Search and replace or Extract http://mindprod/products1.html#EXTRACT to linearly search for regular expressions. The other technique is to Google something like [sort Java array] and see what code pops up. Look for the relevant classes and consult the Javadoc. -- Roedy Green Canadian Mind Products http://mindprod.com The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness. ~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97)