veronikaaa86

07. Reversed Chars

Jan 18th, 2023
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package dataTypes;
  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.  
Add Comment
Please, Sign In to add comment