for (float f: values)
    {
        int a=(int) (f*255);
        builder.append(' ')
               .append(a+",");
    }
values is array of float type builder is StringBuilder type on every call I have 3 float values in values array I am trying to append 'a' to builder and ',' here what I am getting is like (255,145,234,) but what I want is like this(255,145,234) I want to omit the last comma your Help is quite helpful to me Thanks.
 
     
     
    