What is the result of the following code? Assume that there is no text in display- JTextArea when this code begins executing.
```
1 int y;
2 int x = 1;
3
4 do {
5 y = x * x;
6 displayJTextArea.append( y + "\n" );
7 x += 1;
8 } while ( x <= 10 );
```
The do…while statement will loop 10 times, each time appending the square of variable counter’s value to displayJTextArea. Each value appears on a separate line. When this loop completes, displayJTextArea will contain the squares of the numbers from 1 to 10 (that is, the values 1, 4, 9, 16, 25, 36, 49, 64, 81, 100).
You might also like to view...
A browser's ________ shows webpages users visited over a certain period of time
Fill in the blank(s) with correct word
The protocols of the ____________________ layer allows you to address different applications on a host based on port number.
Fill in the blank(s) with the appropriate word(s).
When you create new subnets within a custom VPC, by default they can communicate with each other, across availability zones.
A. True B. False
____________________ is an interface standard for connecting a computer or terminal (or DTE) to a voice-grade modem (or DCE) for use on analog public telecommunications systems.?
Fill in the blank(s) with the appropriate word(s).