Advertisement
Guest User

bg

a guest
May 30th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. public class TestLog {
  2.  
  3.     /**
  4.      * @param args the command line arguments
  5.      */
  6.     public static void main(String[] args) {
  7.         int[][] tab;
  8.         tab = new int[2][3];
  9.         for (int i = 0; i < tab.length; i++) {
  10.             for (int j = 0; i < tab[i].length; i++) {
  11.                 tab[i][j] = 1;
  12.             }
  13.         }
  14.        
  15.         afficheTab(tab);
  16.     }
  17.  
  18.     public static void afficheTab(int[][] tab) {
  19.  
  20.         for (int i = 0; i < tab.length; i++) {
  21.             for (int j = 0; i < tab[i].length; i++) {
  22.                 System.out.println(tab[i][j]);
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement