public class Reverse { public static void main(String[] args) { String s=""; for(int i=args[0].length()-1;i>=0;i--) { s+=args[0].substring(i,i+1); } System.out.println(s); }}