Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1.          String name, second_name;
  2.      Scanner odczyt = new Scanner(System.in);
  3.      name = odczyt.nextLine();
  4.          second_name = odczyt.nextLine();
  5.          Person cos = new Person(name, second_name);
  6.          System.out.println(cos.getName());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement