System.out.print()不会向Eclipse控制台发送任何输出。为什么? [英] System.out.print() doesn't send any output to Eclipse console. Why?

查看:855
本文介绍了System.out.print()不会向Eclipse控制台发送任何输出。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有下一个java类:

  public class Test {

public static void main String args []){

for(int i = 0; i< 1448; i ++){
System.out.print(i);
}

}
}

当我在Eclipse IDE中运行tis代码 - 我在Eclipse控制台中看不到任何输出。



但是,如果我更改值 1448 并设置为例 1447 或更少,我看到控制台中的输出(12345678 ...)



所以,也许Eclipse IDE对控制台的字符串长度有限制? / p>

你怎么看这个?



谢谢。

解决方案

右键单击控制台 - > 首选项... - >检查固定宽度控制台。现在你有自动换行,一切显示确定。似乎像Eclipse控制台对一行显示的字符数有限制。


I have next java class:

public class Test {

    public static void main(String args[]) {

        for (int i = 0; i < 1448; i++) {
            System.out.print(i);
        }

    }
}

When I run tis code in Eclipse IDE - I don't see any output in Eclipse console.

But if I change value 1448 and set for example 1447 or less I see output in console (12345678...)

So, maybe Eclipse IDE has restrictions on string length in console?

What do you think about this?

Thanks.

解决方案

Right click on in console -> Preferences... -> check Fixed width console. Now you have auto word wrap and everything shows ok. Seems like Eclipse console have a limit on number of characters displayed in one line.

这篇关于System.out.print()不会向Eclipse控制台发送任何输出。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆