Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 为什么eclipse控制台不显示日志范围结果_Java_Eclipse - Fatal编程技术网

Java 为什么eclipse控制台不显示日志范围结果

Java 为什么eclipse控制台不显示日志范围结果,java,eclipse,Java,Eclipse,为什么eclipse IDE控制台不显示日志范围结果 我尝试在控制台上打印结果,但结果显示最后1000-1200行 我试图执行下面的字符组合程序,但只能显示最后几行 public class Combination_4 { public static void main(String[] args) { // Create an alphabet to work with char[] alphabet = new char[] {'a', 'b',

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

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

我试图执行下面的字符组合程序,但只能显示最后几行

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;
            }
        }
    }
公共类组合\u 4{
公共静态void main(字符串[]args){
//创建要使用的字母表
新新市区区区内的新市区区区内的新市区区区区内的新市区区区内的新市区区区内的新市区区区内的新市区区区内的新市区区区内的字母表表表表手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手手"w","x","y","z",;
//查找字符串大小为3的此字母表的所有可能组合
StringExcersise.可能的字符串(4,字母表“”);
}
} 
课堂练习{
静态整数计数=0;
公共静态void-possibleStrings(int-maxLength、char[]字母、字符串curr){
//如果当前字符串已达到其最大长度
if(curr.length()=maxLength){
计数=计数+1;
系统输出打印项次(当前);
//否则,将字母表中的每个字母添加到新字符串中,并再次处理这些新字符串
}否则{
for(int i=0;i
转到窗口->首选项->在搜索时键入控制台。->从运行/调试中单击控制台。 您将看到下面给出的屏幕


检查limit console输出中的make limit on console(对控制台进行限制)。取消选中limit for no limit(无限制)。

您是否在此处尝试过答案:可能重复