How do I switch between Windows and UNIX newlines in Netbeans?

后端 未结 9 1473
执笔经年
执笔经年 2021-02-07 03:52

The version of NetBeans that I use is 6.5.1

9条回答
  •  -上瘾入骨i
    2021-02-07 04:34

    There is a platform specific property that you may use make your code cross platform. See http://java.sun.com/docs/books/tutorial/deployment/applet/properties.html

    String newline = System.getProperty("line.separator");

提交回复
热议问题