Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ConcatenateData {
- public static void main(String[] args) {
- Scanner scanner = new Scanner (System.in);
- String Name = scanner.nextLine();
- String Surname = scanner.nextLine();
- int Age = Integer.parseInt(scanner.nextLine());
- String Town = scanner.nextLine();
- System.out.print("You are " + Name + " " + Surname + ", a " + Age + "-years old person from " + Town + ".");
- }
- }
Add Comment
Please, Sign In to add comment