As shown below I declared an ArrayList
of EmployeesRecords
and added employees but I don't understand why this is not comparing. I'm new to java, can someone please help
ArrayList<EmployeeRecords> employees = new ArrayList<EmployeeRecords>();
When the remove button is pressed, it should remove the employee if his/her Id number is equal to one entered by the user.
String employeeID = textEmployeeID.getText();
if(employeeID == String.valueOf(employees.get(0).ID)){
employees.remove(0);
}