Advertisement
Guest User

Untitled

a guest
May 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4. import java.util.Scanner;
  5.  
  6. import static java.lang.Double.doubleToLongBits;
  7. import static java.lang.Double.parseDouble;
  8. import static java.lang.Integer.parseInt;
  9.  
  10. public class Main
  11. {
  12. public static void main(String[] args) throws IOException
  13. {
  14. BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  15.  
  16.  
  17. String t = "";
  18.  
  19. while ((t = br.readLine()).equals("end"))
  20. {
  21. if (t.equals("end"))
  22. {
  23. return;
  24. }
  25.  
  26. String temp = new StringBuilder(t).reverse().toString();
  27.  
  28. System.out.print(t + " = " + temp);
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement