Advertisement
Guest User

Untitled

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