Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import java.util.Arrays;
  2.  
  3. public class Action {
  4.  
  5. public static void main (String[] args) {
  6. int[][] res = korraTabel (9);
  7. for(int i = 0; i < 9; i++) {
  8. for(int j = 0; j < 9; j++){
  9. System.out.println(res);
  10. }
  11. }
  12. }
  13.  
  14. public static int[][] korraTabel (int n) {
  15. int [][] mat = new int [n][n];
  16. for(int i = 0; i < n; i++) {
  17. for(int j = 0; j < n; j++){
  18. mat[i][j] = i+j;
  19. // System.out.println(Arrays.toString(mat));
  20. }
  21. }
  22. return mat; // TODO!!! Your code here
  23.  
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement