双引号替换,试过在回String trim = "dsf\"d\"s";trim.replace(" \" "," ");System.out.println(trim);打印:dsf"d"s怎么还是去不掉双引号呢?[解决办法]trim.replace(" \" "," ");修改为trim = trim.replace(" \" "," ");原trim不会作任何变化的,所以要重新赋值