Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- public class Action {
- public static void main (String[] args) {
- int[][] res = korraTabel (9);
- for(int i = 0; i < 9; i++) {
- for(int j = 0; j < 9; j++){
- System.out.println(res);
- }
- }
- }
- public static int[][] korraTabel (int n) {
- int [][] mat = new int [n][n];
- for(int i = 0; i < n; i++) {
- for(int j = 0; j < n; j++){
- mat[i][j] = i+j;
- // System.out.println(Arrays.toString(mat));
- }
- }
- return mat; // TODO!!! Your code here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement