java language
public class Sequence public Position atRank (int rank) : public int rankof (Position p) throws BoundaryViolationException: public boolean isEmpty(); public void insertAtRank (int rank, Object element) public Object removeAtrank (int rank) public Object replaceAtRank (int rank, Object element) public E size (); are to Create should have one class like Public class Node sequenca LED extends class below sequence Given the sequence provide the Pubble sort code using 2012 Pole positor List LE> Implements Sequeret). a the main funto, candorly generate- to large sequence Containing rambn Lotegers lover 20,000) (Hint: You should have one class like public class NodeSequence
extends Node PositionList implements Sequence) class Node // Instance variables: public E element; public Node next; ** Creates a node with null references to its element and next node. */ public Node () { this (null, null); I Greates a node with the given element and next node/ public Node (E e, Node n) elemente: next nr Accessor methods: publi EgetElements return elements; public Node getNext () Len next Modifier mechods: public void setElement E newElem element newElem. puolivold setNexu Nadece newliext next newNext: public class Sequence public Position atRank (int rank) : public int rankof (Position p) throws BoundaryViolationException: public boolean isEmpty(); public void insertAtRank (int rank, Object element) public Object removeAtrank (int rank) public Object replaceAtRank (int rank, Object element) public E size (); are to Create should have one class like Public class Node sequenca LED extends class below sequence Given the sequence provide the Pubble sort code using 2012 Pole positor List LE> Implements Sequeret). a the main funto, candorly generate- to large sequence Containing rambn Lotegers lover 20,000) (Hint: You should have one class like public class NodeSequence extends Node PositionList implements Sequence) class Node // Instance variables: public E element; public Node next; ** Creates a node with null references to its element and next node. */ public Node () { this (null, null); I Greates a node with the given element and next node/ public Node (E e, Node n) elemente: next nr Accessor methods: publi EgetElements return elements; public Node getNext () Len next Modifier mechods: public void setElement E newElem element newElem. puolivold setNexu Nadece newliext next newNext