Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ConcatenateData2 {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- String firstName = console.nextLine();
- String lastName = console.nextLine();
- int age = Integer.parseInt(console.nextLine());
- String town = console.nextLine();
- System.out.printf("You are %s %s, a %s years old person from %s.%n",firstName,lastName,age,town);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement