Skip to content

Instantly share code, notes, and snippets.

@Yurlov
Created June 17, 2016 11:56
Show Gist options
  • Save Yurlov/79404cadbeee266900c4e98b0c8c3e50 to your computer and use it in GitHub Desktop.
Save Yurlov/79404cadbeee266900c4e98b0c8c3e50 to your computer and use it in GitHub Desktop.
Prog.kiev.ua
public class MatrixPrinter {
public static void main(String[] args) {
int[][] array = new int[4][6];
printMatrix(array);
}
private static void printMatrix(int[][] matrix) {
for (int[] i : matrix) {
for (int j : i)
System.out.print(j +"\t");
System.out.println();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment