Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner a = new Scanner(System.in);
- String First = a.nextLine();
- String Last = a.nextLine();
- int age = Integer.parseInt(a.nextLine());
- String town = a.nextLine();
- System.out.println("You are"+ " " + First +" "+ Last + ", a"+ " " + age + "-years old person from"+ " " +town+".");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment