Hi,
what is the best way to remove the last comma in my
String ?
for (int i=0;i<5,i++)
{
// some pre-treatment here
String foo = "hello";
String result += foo + ", ";
// and some post-treatment here
}
result = hello, hello, hello, hello, hello,
but I want it to be:
result = hello, hello, hello, hello, hello
(without the last comma)
Thanks