Re: Java VM 1.6.0 Sorting Collections



On Thu, 10 Jun 2010 10:14:50 -0600, Jim Janney
<jjanney@xxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :

The evil approach would be to use reflection to get the elementData
field in ArrayList, and call Arrays.sort directly on that.

You are still using Doubles rather than doubles, so you won't get the
full benefit of a true array.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Have you ever noticed that any computer search in the movies, is always linear, with, for example, candidate fingerprints flashing up on the screen one after another? The public is still under the delusion that electronic files are microscopic filing cabinets made out of tiny wires or magnetic patches inside the computer. Most lay people are surprised that it is easy for a computer to file things simultaneously by a dozen different schemes, and that they can have any report printed in any number of different sorted orders. With physical files, they are limited to one ordering/access.
.



Relevant Pages

  • Re: Please tighten up these 10 lines of Java code
    ... Double arg2 = Double.parseDouble.toString); ... You don't want Doubles. ... for how to convert Strings to double and back. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: new JDK 1.7.0_04 and 1.6.0_32
    ... I have written some hand-holding notes at ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Issue With ArrayList
    ... Roedy Green Canadian Mind Products ... Rapidly agin'. ...
    (comp.lang.java.programmer)
  • Re: Java serialization over network
    ... Roedy Green Canadian Mind Products ... "Danish studies of 10,000 birds killed revealed that almost all died in ...
    (comp.lang.java.programmer)
  • Re: Clearing the cmd window
    ... Roedy Green Canadian Mind Products ... "The most significant trend in the US industry has been the decline in the amount ...
    (comp.lang.java.help)