How to optimize code without using regex?

后端 未结 0 1692
余生分开走
余生分开走 2021-01-12 23:02

My test assignment when hiring was to optimize this code:

someString.replaceAll("\\"", "\'").replaceAll("\\n", ""         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题