At 05:25 PM 30/08/01, you wrote:
>Hi Jim
>
>This does seems kinda expensive, turning a String into an integer for each
>value thats being compared in a collection. I would have thought it would be
>better making a small object that contained the String and the number.
>Something along the lines of
>
>public class NumericString implements Comparable {
>     private String text;
>     private int number;
>
>     ...
>}


But they're not all numbers... Some are text Strings - and only those that 
return true to isNumber are being converted...

Still, any pointers on how to improve are always gratefully received ;)


Jim







--

                           *   Jim Cheesman   *
             Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
                Perspective is in 
the eye of the beholder.


Reply via email to