获取系统换行符

180 阅读1分钟
System.getProperty("line.separator")
StringBuilder builder = new StringBuilder();
builder.append(System.getProperty("line.separator"));