diff --git a/reverse/ReverseString.java b/reverse/ReverseString.java new file mode 100644 index 00000000..0cd8f61d --- /dev/null +++ b/reverse/ReverseString.java @@ -0,0 +1,20 @@ +class ReverseString { + public static String reverseString(String s) { + char [] testArray = s.toCharArray(); + int size = testArray.length / 2; + int i; + char temp; + + for(i = 0; i