Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Program {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. String firstName = sc.nextLine();
  7. String lastName = sc.nextLine();
  8. String country = sc.nextLine();
  9. String town = sc.nextLine();
  10.  
  11. System.out.printf("%s %s from %s - %s!", firstName, lastName, country, town);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement