我在windows平台中用java
str1.replaceAll(System.getProperty("line.separator"), "");
把换行符去掉,可是代码上传到linux下就不行了。
请问应该怎么样处理?