I'm trying to make a loop here, but that will print multiple number combinations of 1-2 for digits ## + ##. But for now I can't get my numD in the last loop to print out. For some reason, the numD won't even concatenate, or add incrementally. Any help appreciated, you can ignore the commented code
dim = 2;
numA = 1;
numB = 1;
numC = 1;
numD = 1;
for (int numA = 1; numA < dim + 1; numA++) { // biggest or leftest number loop first
for (int numB = 1; numB < dim + 1; numB++) { // second number from the left
for (int numC = 1; numC < dim + 1; numC++) { // third number from the left
for (int numD = 1; numD < dim + 1; numD++) { // least number loop last
// this will store number in arraylist
//outcomeOutput = String.valueOf(numA) + String.valueOf(numB)+" + "
// + String.valueOf(numC) + String.valueOf(numD);
System.out.println(numD);
System.out.println(outcomeOutput);
//dBArray.get(dim-1).add(outcomeOutput);
//System.out.println(dBArray.get(dim-1).get(count));
//count++;
}
}
}
}