deyanivanov966

06. Concatenate Data

Aug 21st, 2020 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ConcatenateData {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner (System.in);
  6.         String Name = scanner.nextLine();
  7.         String Surname = scanner.nextLine();
  8.         int Age = Integer.parseInt(scanner.nextLine());
  9.         String Town = scanner.nextLine();
  10.         System.out.print("You are " + Name + " " + Surname + ", a " + Age + "-years old person from " + Town + ".");
  11.  
  12.  
  13.     }
  14. }
Add Comment
Please, Sign In to add comment