Below, you'll see how I am building my truth table.
//Tab 2D represents truth table
//tt [nbr of combinaisons] [nbr of variables + S]
boolean tt [][] = new boolean [nbrCombinaisons][nbrVariables+1];
for (int j = 0; j < nbrVariables; j++) {
for (int i = 0; i < nbrCombinaisons; i++) {
tt[i][j] = true;
}
}
//Display truth tab in console
for (boolean[] row : tt) { System.out.println(Arrays.toString(row));}
}
}
Do you know how can I store my array to have somethin like this :
False False **False**
False True **False**
True False **False**
True True **False**
** S ** will be stored after.
tks