How to replace || (two pipes) from a string with | (one) pipe

后端 未结 5 1627
醉话见心
醉话见心 2021-01-15 00:24

I am getting response for some images in json format within this tag:

\"xmlImageIds\":\"57948916||57948917||57948918||57948919||57948920||57948921||57

5条回答
  •  忘掉有多难
    2021-01-15 00:51

    i dont remember how it works that method... but you can make your own:

    String withTwoPipes = "helloTwo||pipes";
       for(int i=0; i

    I think that some code like this should work... its not a perfect answer but can help...

提交回复
热议问题