Write code that prints the values stored in an array called names backwards.
What will be an ideal response?
```
for (int index = names.length-1; index >= 0; index--)
System.out.println(names[index]);
```
You might also like to view...
Answer the following questions true (T) or false (F)
1. A constructor is a special kind of member function. It is automatically called when an object of that class is declared. 2. A constructor is always named construct with class name attached. If the class is Foo, then the constructor name is constructFoo.
The following code fragment reads in two numbers:
``` Scanner input = new Scanner(System.in); int i = input.nextInt(); double d = input.nextDouble(); ``` What is the incorrect way to enter these two numbers? a. Enter an integer, a space, a double value, and then the Enter key. b. Enter an integer, two spaces, a double value, and then the Enter key. c. Enter an integer, an Enter key, a double value, and then the Enter key. d. Enter a numeric value with a decimal point, a space, an integer, and then the Enter key.