Advertisement
veronikaaa86

07. Reversed Chars

May 25th, 2022
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package dataTypesAndVariables;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class P07ReversedChars {
  6. public static void main(String[] args) {
  7. Scanner scanner = new Scanner(System.in);
  8.  
  9. char firstSymbol = scanner.nextLine().charAt(0);
  10. char secondSymbol = scanner.nextLine().charAt(0);
  11. char thirdSymbol = scanner.nextLine().charAt(0);
  12.  
  13. System.out.printf("%c %c %c", thirdSymbol, secondSymbol, firstSymbol);
  14. }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement