simplest way to output 2DArray/Matrix

Run Settings
LanguageJava
Language Version
Run Command
import java.util.Arrays; import static java.lang.System.out; /** * @author orochi-100 * @version 22.04.2020 */ public class Main { public static void main(String[] args) { int[][] intMatrix = { { 7, 8, 9 }, { 4, 5, 6 }, { 1, 2, 3 } }; for (var intArray : intMatrix) out.println(Arrays.toString(intArray)); } }
Editor Settings
Theme
Key bindings
Full width
Lines