@@ -0,0 +1,1467 @@
+import java.util.Scanner;%0A%0Apublic class ReverseStringApp %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09Scanner in = new Scanner(System.in);%0A%09%09String input;%0A%09%09%0A%09%09try %7B%0A%09%09%09System.out.println(%22Input string:%22);%0A%09%09%09input = in.nextLine();%0A%09%09%7D finally %7B%0A%09%09%09in.close();%0A%09%09%7D%0A%09%09%0A%09%09int size = input.length();%0A%09%09if (size %3C 1) %7B%0A%09%09%09System.out.println(%22Empty string provided!%5Cn%22);%0A%09%09%7D%0A%09%09%0A%09%09ReverseString str = new ReverseString(input, size);%0A%09%09System.out.println(String.format(%22Reverse string: %25s%22, str.reverseString()));%0A%09%7D%0A%7D%0A%0Aclass ReverseString %7B%0A%09private String inputString = %22%22;%0A%09private int inputStringSize = 0;%0A%09%0A%09public ReverseString(String input, int size) %7B%0A%09%09this.inputString = input;%0A%09%09this.inputStringSize = size;%0A%09%7D%0A%09%0A%09public String reverseString () %7B%0A%09%09%0A%09%09// initialize char array with size of input string%0A%09%09char%5B%5D c = new char%5BinputStringSize%5D;%0A%09%09System.out.println(String.format(%22Initialized char array of size %25d%22, inputStringSize));%0A%09%09%0A%09%09System.out.println(%22inputStringSize/2d = %22 + inputStringSize/2d);%0A%09%09double until = Math.ceil(inputStringSize/2d);%0A%09%09System.out.println(%22until = %22 + until);%0A%09%09// reverse chars%09%09 %0A%09%09for (int i=0; i%3Cuntil; i++) %7B%0A%09%09%09System.out.println(String.format(%22i=%25d, reverse=%25d%22, i, inputStringSize-1-i));%0A%09%09%09%0A%09%09%09char charAtReverseLoc = inputString.charAt(inputStringSize - 1 - i);%09%09%09%0A%09%09%09c%5BinputStringSize - 1 - i%5D = inputString.charAt(i);%0A%09%09%09c%5Bi%5D = charAtReverseLoc;%0A%09%09%7D%0A%0A%09%09String reverse = String.valueOf(c);%0A%09%09return reverse;%0A%09%7D%0A%0A%7D%0A

Create ReverseStringApp.java