import java.util.Arrays; import structure5.*; public class Sorter { public static void main(String[] args) { Vector people = new Vector<>(); people.addLast(new Person("Sanyukta")); people.addLast(new Person("Sebastian")); people.addLast(new Person("Simon")); people.addLast(new Person("Helen")); PersonComparator c = new PersonComparator(); System.out.println("unsorted: " + people); BubbleSort.sort(people, c); System.out.println("sorted: " + people); } }