Position
InspectablePositionalContainer
PositionalContainer
InspectableList
EmptyContainerException
List
DNode
NodeList
List whose elements are one of the following objects
public static final Object RED = new Object(); public static final Object WHITE = new Object(); public static final Object BLUE = new Object();The list may contain each object more than once. Write a method
public static void sort(List list)that sorts the elements: first all the red, then the white and finally the blue objects.