public class test2 { public static void main(String[] args) { for (int i=args[0].length()-1;i>=0; i--) { System.out.print(args[0].charAt(i)); } } }