java中的中括号"["和"]",替换他们的时候要转义

写法以下:  

  String    temp1= temp.replaceAll("\\[", "").replaceAll("\\]", "");

相关文章
相关标签/搜索