Need help writing Java Code.
Implement a method inPlaceInsertionSort() that takes an array of Clocks as an input.
Your method should:
• Sort in place, i.e (Don't create a new array to sort in)
• Use insertion sort algorithm to implement your method.
• Provide the Javadoc for your method.
• Add a brief discussing in you javadoc about the modifiers you used in implementing your method (Public, static...)
• Note that this method is not given in the skeleton file Clock.Java.
• Hint: you may use the methods isBefore and/or isAfter in your code.