Re: Java VM 1.6.0 Sorting Collections
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 10 Jun 2010 14:11:47 -0700
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
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.