Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

display two dimension array java

//this way u can print your array row by row

for (int i = 0; i < row; i++){
	for (int j = 0; j < column; j++){
        System.out.println(array[i][j]);
	}
}

//this way u can print your array column by column

for (int i = 0; i < column; i++){
	for (int j = 0; j < row; j++){
		System.out.println(array[i][j]);
	}
}
Comment

PREVIOUS NEXT
Code Example
Java :: string array to stringbuilder array java 
Java :: java stop script 
Java :: convert string into time in java 
Java :: how to remove all characters before a certain character from a string in java 
Java :: error: package android.support.v7.app does not exist 
Java :: volley android 
Java :: palindrome java 
Java :: android ecode base64 
Java :: check if first character of a string is a number java 
Java :: java string literals 
Java :: declaration of an array in java 
Java :: how to create a gui in java 
Java :: java date add hours 
Java :: what is transient in java 
Java :: how to stop activity from another activity 
Java :: rider find and replace 
Java :: add a value to a list java in java hashmap 
Java :: comment générer un nombre aléatoire en java 
Java :: java try with resources 
Java :: print statement in java 
Java :: iterate list in java 
Java :: java concatenate strings 
Java :: set jcombobox index java 
Java :: For loop Java Example to Iterate an Array 
Java :: online java code fixer 
Java :: how to use map, filter and reduce in Java 
Java :: get intersection of two lists java 
Java :: java bfs 
Java :: java asynchronous programming example 
Java :: what is constructor in java 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =