Lets say I have an ArrayList<Skater> skaters = new ArrayList<Skater>(); I want t
ID: 3631982 • Letter: L
Question
Lets say I have an ArrayList<Skater> skaters = new ArrayList<Skater>();
I want to add a skater to the ArrayList.Each skater has a String name, String nation, and double time... how would I use insertion sort to sort the skaters by their time?? Im pretty sure I need to put this in the public void addSkater(Skater s1) method I created, but not sure exactly how insertion sort is supposed to work...