Commit 11c2438e authored by Uma Vani Ravuri's avatar Uma Vani Ravuri

Replace Employee.java

parent 9a5c37e4
package com.java8.practies;
import java.util.Comparator;
import java.util.List;
public class Employee implements Comparator<Employee>{
public class Employee{
String id;
String firstName;
......@@ -63,10 +62,4 @@ public class Employee implements Comparator<Employee>{
+ departmentNames + "]";
}
@Override
public int compare(Employee o1, Employee o2) {
return o1.firstName.compareTo(o2.firstName);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment