这是来自一个 10 行 4 列的数组。如何获得 if 以防止空值打印到屏幕
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");