Write a code fragment that prints the characters stored in a String object called str backward.
What will be an ideal response?
```
for (int index = str.length()-1; index >= 0; index--)
System.out.print(str.charAt(index));
System.out.println();
```
Computer Science & Information Technology
You might also like to view...
LinkLabels are most commonly used for:
a) shortcuts to menu items. b) links to an Explorer window. c) links to a Web site. d) a) & b) e) b) & c)
Computer Science & Information Technology
State which of the following operations has a compensating operation.
a. Give all employees a 10% raise. b. Give all employees making less than |S10,000 a 10% raise. c. Set the value of a particular item to 12. d. Insert a newtuple with key 1111 into the database, and set the value of one of its attributes to 12. e. Set the value of a particular item to the square of its original value.
Computer Science & Information Technology