SHARE
TWEET

Untitled

a guest Aug 19th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public static Employee createEmployee(Employee employee) {
  2.         System.out.println("Введите данные о новом Сотрдунике");
  3.         System.out.println("Имя - ");
  4.  
  5.         if (employee == null) {
  6.             employee = new Employee();
  7.         }
  8.         Scanner scanner = new Scanner(System.in);
  9.         String parametr = scanner.nextLine();
  10.         employee.setFirstName(parametr);
  11.         System.out.print("Фамилию - ");
  12.         parametr = scanner.nextLine();
  13.         employee.setLastName(parametr);
  14.         System.out.print("Email - ");
  15.         employee.setEmail(parametr);
  16.         System.out.println("Должность - ");
  17.         employee.setRole(parametr);
  18.         System.out.println("Номер телефона");
  19.         employee.setPhoneNumber(parametr);
  20.         return employee;
  21.     }
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