Is it always a bad idea to use + to concatenate strings

Viewed 9323

I have code as follows :

String s = "";
for (My my : myList) {
    s += my.getX();
}

Findbugs always reports error when I do this.

9 Answers
Related