Replacing characters in Java

前端 未结 6 1185
囚心锁ツ
囚心锁ツ 2021-01-25 16:05

I tried to replace characters in String which works sometimes and does not work most of the time.

I tried the following:

String t = \"[javatag]\";
String         


        
6条回答
  •  南笙
    南笙 (楼主)
    2021-01-25 16:54

    String.replace doesn't work that way. You have to use something like t = t.replace("t", "")

提交回复
热议问题