Write a for-loop that will print all the positive integers from 100 down to 1, inclusive, one number per line.

What will be an ideal response?


for (int i = 100; i >= 1; i--)
System.out.println(i);

Computer Science & Information Technology

You might also like to view...

The argument to ListView method setCellFactory is an implementation of interface ________ (package javafx.util). This generic interface provides a call method that receives one argument and returns an object of the custom ListCell subclass.

a. Call b. getListCell c. CallBack d. None of the above.

Computer Science & Information Technology

Macros can be created to run other macros inside of them

Indicate whether the statement is true or false

Computer Science & Information Technology

__________ is the requirement that every employee be able to perform the work of another employee.

A. Two-man control B. Collusion C. Duty exchange D. Task rotation

Computer Science & Information Technology

The building blocks of any schema are the XML elements that define the structure; these are known collectively as _______.

A. characters B. objects C. variables D. elements

Computer Science & Information Technology