Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

comment initialiser un tableau de char en java 2d array

public class Array {
    public static void main (String [] args){
        int[][] arr = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
        for(int row = 0; row < 3; row++){
            for(int col = 0; col < 3; col++)
                System.out.print(arr[row][col] + " ");
            System.out.println();

        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: Array pocket in java 
Java :: How to handle exception if message lost during publishing to kafka 
Java :: how to check that letter is not a number and is repeating or not in a sentence in java 
Java :: add element to queue java 
Java :: n/mm2 
Java :: equals() method in java algorithm 
Java :: android edittext with icon 
Java :: java initialize dynamic array of boolean 
Java :: int to byte calculator 
Java :: initialize set of strings java 
Java :: randpm years java 
Java :: gif to blob java 
Java :: decision tree drools using spring boot 
Java :: what does put extra do? 
Java :: reset a jTable without deleting rows 
Java :: control statements 
Java :: type casting 
Java :: java tostring methode überschreiben 
Java :: c# param.ExStyle equivalent in java 
Java :: How to Fix java.lang.UnsupportedClassVersionError 
Java :: jdk full form 
Java :: crazy error 
Java :: Double And Char In Java 
Java :: Use following code to open activity while your application is not running. 
Java :: java using the segment Information already before the for-loop 
Java :: java mockito subclass mocken method 
Java :: java var keyword with example 
Java :: how to sort a collection using stream 
Java :: Java headSet(element, booleanValue) 
Java :: sorting boolean array with prime index 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =