Daily Cybersecurity news
String output = names.stream() .sorted((name1, name2) -> { String[] parts1 = name1.break up(" "); String lastName1…