Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String firstName = scanner.nextLine(),
- secondName = scanner.nextLine(),
- delimiter = scanner.nextLine();
- System.out.println(firstName + delimiter + secondName);
- // System.out.printf("%s%s%s\n", firstName, delimiter, secondName);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement