Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
行列の値を行列のように表示したい
ちょうどこのような
0 0 1 0 0 0 1 1 1 1 0 0 0 0 0
このコードを作成すると、縦に表示されます
for (int i = 0; i < mat.length; i++) for (int j = 0; j < mat[i].length; j++) System.out.println(mat[i][j]);