@@ -0,0 +1,407 @@
+package javarevisited.top.fifty.java.programs.from.coding.interviews;%0A%0Apublic class ReverseAString %7B%0A%0A%09public static String reverseString(String s) %7B%0A%09%09String result = %22%22;%0A%09%09for (int i = 0; i %3C s.length(); i++) %7B%0A%09%09%09result += s.charAt(s.length() - i - 1);%0A%09%09%7D%0A%09%09return result;%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09String test = %22To be reversed!%22;%0A%09%09System.out.println(reverseString(test));%0A%09%7D%0A%7D%0A

reverse a String