2017-01-11 3 views
0

結果鳴った私は、コンソールが、結果として最後の1000年から1200本のラインのショーになる印刷しようなぜ日食コンソールは、Eclipse IDEのコンソールログが表示されないのはなぜ

なり鳴りました。

次の文字組み合わせプログラムを実行しようとしましたが、最後の数行しか表示されません。

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; 
      } 
     } 
    } 
+0

ここで答えを試しましたか?[Eclipse出力コンソールの容量を増やすにはどうすればいいですか?](http://stackoverflow.com/questions/2828255/how-do-i-increase-the-capacity-of -the-eclipse-output-console) –

+0

[Eclipse出力コンソールの容量を増やすにはどうすればよいですか?](http://stackoverflow.com/questions/2828255/how-do-i-increase-the- eclipse-output-consoleのキャパシティ) – Max

答えて

0

[ウィンドウ] - > [設定] - > [コンソールで検索]をクリックします。 - >実行/デバッグからコンソールをクリックします。 以下の画面が表示されます。

screent shot

コンソール上のメイク上限の限界コンソール出力を確認してください。無制限の場合はチェックを外します。

関連する問題