Browse Source

strings lab updated

William Simkins 6 years ago
parent
commit
17178665ad
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      StringUtilities.java

+ 2
- 1
StringUtilities.java View File

@@ -92,7 +92,8 @@ public class StringUtilities {
92 92
      * @return an identical string with characters in reverse order.
93 93
      */
94 94
     public String reverse(String stringToReverse){
95
-        return null;
95
+        String reverse = new StringBuffer(stringToReverse).reverse().toString();
96
+        return reverse;
96 97
     }
97 98
 
98 99
     /**