Advertisement
Sim0o0na

Untitled

Dec 17th, 2016
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class ConcatenateData {
  3. public static void main (String [] args){
  4. Scanner scan = new Scanner (System.in);
  5. String fname = scan.nextLine();
  6. String lname = scan.nextLine();
  7. int ages = scan.nextInt();
  8. scan.nextLine();
  9. String grad = scan.nextLine();
  10.  
  11. System.out.println("You are "+ fname + " " + lname + ", a " + ages + "-years old person from " + grad + ".");
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement