How many times will the following code print out the message?
What will be an ideal response?
```
String message = " I wi l l be good ! " ;
for ( int i = 1 ; i <= 5 ; i++) {
for ( int j = 1 0 ; j > 0 ; j¡¡) {
System . out . p r i n t l n (message ) ;
}
}
```
It will print out the message 50 times. The outer loop executes 5 times with i
changing from 1 to 5 and the inner loop executes 10 times with the j changing
from 10 to 1. So the total is 5 * 10 = 50.
You might also like to view...
To change a chart type, you select the existing chart and click the Change Chart Type button in the:
A) Illustrations group on the Layout tab. B) Illustrations group on the Design tab. C) Type group on the Design tab. D) Type group on the Layout tab.
Which statement is true about Category ratings for cables?
A. Only cables used for networking receive a category rating. B. UTP has a category rating. C. Only STP has a category rating. D. Only coaxial has a category rating.