I need to write a method that sorts a provided Linked list withbubble sort and using ONLY Java List Iterator Methods (LinkBelow)
https://docs.oracle.com/javase/8/docs/api/java/util/ListIterator.html Â
  public static > void bubbleSort(List c) throws Exception {
    // first line to start you off
    ListIterator iit =c.listIterator(), jit;
    /**** Test code: do not modify*****/
    List cc = new LinkedList(c);
    Collections.sort(c);
    ListIterator it1 = c.listIterator(), it2= cc.listIterator();
while (it1.hasNext()) {
if (!it1.next().equals(it2.next()))
        throw newException(\"List not sorted\");
}
    /***********************************/
  }