Skip to content

Commit 5b7b1a5

Browse files
author
“Drake
committed
empty employee remove method
1 parent 5f1e2ed commit 5b7b1a5

File tree

6 files changed

+3
-4
lines changed

6 files changed

+3
-4
lines changed
-103 Bytes
Binary file not shown.
613 Bytes
Binary file not shown.
-724 Bytes
Binary file not shown.
-32 Bytes
Binary file not shown.

{code}pendent/src/DartController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public void addEmployee(){
4545
this.employees.add(employee.addEmployee());
4646
menu.managerMenu();
4747
}
48-
public void removeEmployee(Employee employee) {
48+
public void removeEmployee() {
4949
String check = helper.getInput("ID: ");
50-
removeEmployee(check);
50+
removeEmployee();
5151
employees.remove(employee);
5252
}
5353
public void viewEmployee(){

{code}pendent/src/Employee.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ public Employee addEmployee(){
4848
Employee employee = new Employee(name, birthYear, address, grossSalary);
4949
return employee;
5050
}
51-
public Employee removeEmployee(){
52-
51+
public void removeEmployee(){
5352
}
5453
/*
5554
public Employee[] removeEmployee() {

0 commit comments

Comments
 (0)