Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Program {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String firstName = sc.nextLine();
- String lastName = sc.nextLine();
- String country = sc.nextLine();
- String town = sc.nextLine();
- System.out.printf("%s %s from %s - %s!", firstName, lastName, country, town);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement