This is from an array with 10 rows 4 columns. How do I get the if to keep the null values from printing to screen
for(int j = 0; j < calculation[i].length; j++)
if (calculation[i] != null)<-------- this does nothing, however if I change it to == null nothing prints to screen
System.out.print(calculation[i][j] + " \t");
System.out.print("\n");
calculation[i]may not be null butcalculation[i][j]could be.Change your code to: