@@ -0,0 +1,801 @@
+import java.util.*;%0Aimport java.io.*;%0Aclass rev_str%0A%7B%0A    public static void main(String args%5B%5D)%0A    %7B%0A        Scanner scan = new Scanner(System.in);%0A        String str%5B%5D = scan.nextLine().split(%22 %22);%0A        for(int i=str.length-1;i%3E=0;i--)%0A        System.out.println(str%5Bi%5D);%0A        for(int i=str.length-1;i%3E=0;i--)%0A        %7B%0A            char ch%5B%5D = str%5Bi%5D.toCharArray();%0A            char%5B%5D c = new char%5Bch.length%5D;%0A            int p=0;%0A            int l=c.length-1;%0A            for(int k=p;k%3Cc.length;k++)%0A            %7B%0A                for(int j=l;j%3E=0;j--)%0A                %7B%0A                    c%5Bk%5D=ch%5Bj%5D;%0A                    System.out.print(c%5Bk%5D);%0A                    break;%0A                %7D%0A                p=p+1;%0A                l=l-1;%0A            %7DSystem.out.print(%22 %22);%0A        %7D%0A    %7D%0A%7D%0A

Create rev_str.java