Solved

How Many Times Will the Following Code Print Out Hello

Question 3

Essay

How many times will the following code print out Hello World (in terms of the length of the array)?
for(int i = 0; i < array.length; i++) {
for(int j = 0; j < array.length; j++) {
for(int k = 0; k < array.length; k++) {
System.out.println("Hello World!");
}
}
}

Correct Answer:

verifed

Verified

Related Questions