Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner in = new Scanner(System.in);
  6. String str = in.nextLine();
  7. String conversely = new StringBuffer(str).reverse().toString();
  8. System.out.print(conversely);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement