\r 在InterlliJ IDEA 和 Eclipse 中输出的结果不一样

来源:互联网 发布:怎么添加js 编辑:程序博客网 时间:2024/04/28 03:50
public class TestFun {    /*    IDEA 的输出结果是    -----------    def    -----------    而 Eclipse 的输出结果是    -----------    abc    def    -----------     */    public static void main(String [] argv) {        System.out.println("-----------");        System.out.println("abc\rdef");        System.out.println("-----------");    }}

0 0
原创粉丝点击