java - 为什么 Eclipse 控制台不显示日志范围结果

标签 java eclipse

为什么 Eclipse IDE 控制台不显示日志范围结果

我尝试在控制台上打印结果,但它显示最后 1000-1200 行结果。

我尝试执行以下字符组合程序,但 cansole 仅显示最后几行。

public class Combination_4 {
    public static void main(String[] args) {

        // Create an alphabet to work with
        char[] alphabet = new char[]  {'a', 'b', 'c', 'd', 'e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','~','!','@','#'};
        // Find all possible combinations of this alphabet in the string size of 3
        StringExcersise.possibleStrings(4, alphabet,"");
    }

} 
class StringExcersise {

    static int count=0;

    public static void possibleStrings(int maxLength, char[] alphabet, String curr) {

        // If the current string has reached it's maximum length
        if(curr.length() == maxLength) {
            count=count+1;

            System.out.println(curr);

        // Else add each letter from the alphabet to new strings and process these new strings again
        } else {
            for(int i = 0; i < alphabet.length; i++) {
                String oldCurr = curr;
                curr += alphabet[i];
                possibleStrings(maxLength,alphabet,curr);
                curr = oldCurr;
            }
        }
    }

最佳答案

转到窗口 -> 首选项 -> 在搜索中键入控制台。 -> 从运行/调试中单击控制台。 您将看到下面给出的屏幕。

screent shot

检查限制控制台输出以在控制台上进行限制。取消选中它就没有限制。

关于java - 为什么 Eclipse 控制台不显示日志范围结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41586702/

相关文章:

java - Java中 "this"是什么意思?

java - 使用 Java 中的算法更改绘图的角度/位置

c++ - Eclipse中 undefined reference 问题

java - Maven 和 Java 版本设置——哪个解决方案更好?

java - 使用 MS Access 数据库中的数据填充 JTable 的代码

java - frame.dispose() 方法错误

java - 类处理,重复代码

linux - 在 Windows 7 客户端和 Linux 服务器之间同步的最佳程序

java - Eclipse Windowbuilder动态更改面板内容

java - 防止将eclipse项目中的授权数据保存到存储库