Advertisement
SIRAKOV4444

Concenate Data

Mar 15th, 2019
157
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.  
  3. public class ConcatenateData {
  4. public static void main(String[]args){
  5. Scanner scanner=new Scanner(System.in);
  6.  
  7. String firstName=scanner.nextLine();
  8. String lastNime=scanner.nextLine();
  9. int age=Integer.parseInt(scanner.nextLine());
  10. String town=scanner.nextLine();
  11.  
  12.  
  13. System.out.println("You are "+firstName+" " + lastNime+",a "+age+" years old person,from " +town+".");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement