Passing a comparator syntax help in Java
- by Crystal
I've tried this a couple ways, the first is have a class that implements comparator at the bottom of the following code. When I try to pass the comparat in sortListByLastName, I get a constructor not found error and I am not sure why
import java.util.*;
public class OrganizeThis implements WhoDoneIt
{
/**
Add a person to the organizer
…