Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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 
*/
Comment

PREVIOUS NEXT
Code Example
Java :: latest android sdk version 
Java :: java not equal to 
Java :: type of exception in java 
Java :: how to read text file as variable in java 
Java :: android bottom navigation hiding views 
Java :: java abstraction 
Java :: java stringbuilder setcharat 
Java :: how to use string variables with an if statement in java 
Java :: prime numbers program in java 
Java :: objectmapper in java 8 
Java :: lauch java batch 
Java :: simple for loop 
Java :: setter getter array java 
Java :: queue and stack reader 
Java :: combinations in java 
Java :: Java Create a BufferedOutputStream 
Java :: java continue keyword 
Java :: Java Searching Using binarySearch() 
Java :: horizontal rule in android studio 
Java :: How to get the nth Fibonacci number code in Java using recursion with memoization 
Java :: java stream inner join two lists 
Java :: osmdroid get current zoom level 
Java :: dowload htpasswd file java 
Java :: app not showing in share menu android 
Java :: recursion of numbers in decending order in java 
Java :: java new string 
Java :: treemap java entryset 
Java :: java list tostring 
Java :: Printing cube root of a number in java 
Java :: get sum of array and return string 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =