Ver código fonte

Final Finished version

Lawrence Wu 6 anos atrás
pai
commit
c7d24f144c

+ 5
- 1
src/main/java/com/zipcodewilmington/danny_do_better_exercises/StringUtilities.java Ver arquivo

94
      * @return an identical string with characters in reverse order.
94
      * @return an identical string with characters in reverse order.
95
      */
95
      */
96
     public static String reverseTheTwo(String stringToReverse) {
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 Ver arquivo