Answers for "tableau deux dimensions java"

0

tableau deux dimensions java

//Two dimensional arrays

//example of a declaration
int[][] w=new int[3][4] ;

int[][] tab={ {1,2,3,4},{5,6,7,8},{9,10,11,12} };

//display
    for(int i=0;i<3;i++){
       for(int j=0;j<4;j++){
         System.out.print(tab[i][j]+" ");
       } System.out.println();
    }

/*
1 2 3 4 
5 6 7 8 
9 10 11 12 
*/
Posted by: Guest on March-22-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language