Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java code to create square using 2D array

int counter=0;
    for(int i=0;i<d;i++){
        for(int j=0;j<d;j++){
            array[i][j]=counter;
            counter++;
        }
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #code #create #square #array
ADD COMMENT
Topic
Name
8+9 =