Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.io.*;
- import java.util.*;
- public class P06CharsToStrings {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- char firstSymbol = scanner.nextLine().charAt(0);
- char secondSymbol = scanner.nextLine().charAt(0);
- char thirdSymbol = scanner.nextLine().charAt(0);
- String result = Character.toString(firstSymbol) + Character.toString(secondSymbol) + Character.toString(thirdSymbol);
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement