Write Java code that uses a while loop to print even numbers from 2 through 10.

What will be an ideal response?


```
int evenNumber = 2;
while(evenNumber <= 10)
{
System.out.println(evenNumber);
evenNumber += 2;
}
```

Computer Science & Information Technology

You might also like to view...

Services that one business provides for another are called ________

A) C2B B) C2C C) B2B D) B2C

Computer Science & Information Technology

Changes you make to a field in the current record are not saved until you ___________________ from the current record to a different record.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is a file that contains the necessary information to perform an offline domain join?

A. domain join B. domain blob C. path blob D. domain provision

Computer Science & Information Technology

The domain name of the server on which webpages are published can be used together with a path to specific pages for webpage addresses.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology