Write a method called reverse that accepts a String parameter and returns a string that contains the characters of the parameter in reverse order. Note that there is a method in the String class that performs this operation, but for the sake of this exercise, you are expected to write your own.
What will be an ideal response?
```
public String reverse(String text)
{
String result = "";
for (int place = text.length()-1; place >= 0; place--)
result += text.charAt(place);
return result;
}
```
Computer Science & Information Technology
You might also like to view...
Show Title is a toggle setting that can be used to display and hide the toolbar title
Indicate whether the statement is true or false
Computer Science & Information Technology
An adjunct professor has a flash drive attached to a USB on the computer in the adjunct office. The teacher was called away unexpectedly. The departmental secretary should
A) Power down the computer before removing the drive. B) Use the Add/Remove Hardware control panel to remove the drive. C) Gently remove the drive from the computer. D) Stop the drive and remove it.
Computer Science & Information Technology