Selaa lähdekoodia

Final Finished version

Lawrence Wu 6 vuotta sitten
vanhempi
commit
c7d24f144c

+ 5
- 1
src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java Näytä tiedosto

@@ -94,7 +94,11 @@ public class StringUtilities {
94 94
      * @return an identical string with characters in reverse order.
95 95
      */
96 96
     public static String reverseTheTwo(String stringToReverse) {
97
-        return new StringBuilder(stringToReverse).reverse().toString();
97
+        StringBuilder string1 = new StringBuilder(stringToReverse);
98
+
99
+        String string2 = string1.reverse().toString();
100
+
101
+        return String.valueOf(string2);
98 102
         }
99 103
 
100 104
     }

BIN
target/classes/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.class Näytä tiedosto