LarissaHortencio10 / charts4j

Automatically exported from code.google.com/p/charts4j
Other
0 stars 0 forks source link

Comma seperated lists can be optimized #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Use this idiom instead:

        int[] array = {1, 2, 3,4,5,6,7};
        StringBuilder builder = new StringBuilder();
        for (int i = 0 ;  i < array.length; i++)
               builder.append(i == 0 ? "" : ",").append(array[i]); 

Original issue reported on code.google.com by Julien.C...@gmail.com on 22 Mar 2009 at 5:44

GoogleCodeExporter commented 8 years ago
Done

Original comment by Julien.C...@gmail.com on 4 May 2009 at 4:33