SHARE
TWEET

Untitled

a guest Aug 19th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static Employee createEmployee() {
  2.         System.out.println("Введите данные о новом Сотрдунике");
  3.         Employee employee = new Employee();
  4.        
  5.         System.out.println("Имя - ");
  6.         Scanner scanner = new Scanner(System.in);
  7.         String parametr = scanner.nextLine();
  8.         employee.setFirstName(parametr);
  9.         System.out.print("Фамилию - ");
  10.         parametr = scanner.nextLine();
  11.         employee.setLastName(parametr);
  12.         System.out.print("Email - ");
  13.         employee.setEmail(parametr);
  14.         System.out.println("Должность - ");
  15.         employee.setRole(parametr);
  16.         System.out.println("Номер телефона");
  17.         employee.setPhoneNumber(parametr);
  18.         return employee;
  19.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top