Java String Concatenation

后端 未结 7 1780
無奈伤痛
無奈伤痛 2021-01-21 14:45

I have a issue with my java code. i asked the same question yesterday. I got answer but sorry it was my fault. My question is not clear.

I have code looks like this:

7条回答
  •  無奈伤痛
    2021-01-21 15:10

    Depends on the kind of environment you're on. If you don't need thread safety, use stringbuilder. The stringbuffer class provides the necessary synchronisation when needed.

提交回复
热议问题