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;
}
}
}
ここで答えを試しましたか?[Eclipse出力コンソールの容量を増やすにはどうすればいいですか?](http://stackoverflow.com/questions/2828255/how-do-i-increase-the-capacity-of -the-eclipse-output-console) –
[Eclipse出力コンソールの容量を増やすにはどうすればよいですか?](http://stackoverflow.com/questions/2828255/how-do-i-increase-the- eclipse-output-consoleのキャパシティ) – Max