import java.*;
class Reverse
{
public static void main(String[] args)
{
for(int i=0;i<args.length;i++)
{
System.out.print("\n\nThe Reversed String of * "+args[i]+" * is : ");
for(int j=args[i].length()-1;j>=0;j--)
{
System.out.print(args[i].charAt(j));
}
System.out.print("\n\n");
}
}
}
class Reverse
{
public static void main(String[] args)
{
for(int i=0;i<args.length;i++)
{
System.out.print("\n\nThe Reversed String of * "+args[i]+" * is : ");
for(int j=args[i].length()-1;j>=0;j--)
{
System.out.print(args[i].charAt(j));
}
System.out.print("\n\n");
}
}
}
No comments:
Post a Comment