DidiHristova93

Untitled

Oct 9th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class techModuleReversedChar {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6.  
  7. String a = scanner.nextLine();
  8. String b = scanner.nextLine();
  9. String c = scanner.nextLine();
  10.  
  11. String sum = a+ " " + b + " " + c;
  12. String reverse = new StringBuffer(sum).reverse().toString();
  13.  
  14. System.out.println(reverse);
  15.  
  16. }
  17. }
Add Comment
Please, Sign In to add comment