How many times will the following code print out the message?
```
S t r i n g message = ” I w i l l be good ! ” ;
f o r ( i n t i = 0 ; i < 5 ; i ++) {
f o r ( i n t j = 0 ; j < 1 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 0 to 4 and the inner loop executes 10 times with the j changing from 0 to 9. So the total is 5 * 10 = 50.
Computer Science & Information Technology
You might also like to view...
You can use queries as the source of the underlying data for another query. _________________________
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Many graphic arts professionals refer to alpha channels as ____.
A. stencils B. tops C. masks D. opacity
Computer Science & Information Technology