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...

Discuss the main benefits and problems associated with data warehousing.

What will be an ideal response?

Computer Science & Information Technology

Neighbor Discovery makes abundant use of messages.

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

Computer Science & Information Technology

Which of the following hosts resources that are made available to the account partner?

A. Claims provider B. Relying party C. Federation trustee D. Claims agent

Computer Science & Information Technology

Linux stores information on its groups in the /etc/groups file.

a. true b. false

Computer Science & Information Technology