I have to create a method that sorts an ArrayList of objects alphabetically according to email and then prints the sorted array. The part that I am having trouble with
clearest
vehiclearray.sort(Comparator.comparing(Vehicle::getEmail()));