View Code of Problem 52

import java.util.*;
class Main{
    public static void main(String[] args){
         Scanner sc=new Scanner(System.in);
         String str=sc.nextLine();
         String str1=new StringBuilder(str).reverse().toString();
         System.out.println(str1);
    }
}

Double click to view unformatted code.


Back to problem 52