In Java, use an instance of ArrayList to build a generic classof comparable elements, representing an orderedSet (a set whereevery element is positioned in the order of their value), provide aconstructor, and add, a get size, and a remove method.
Answer