Tell me, please, how can you implement a method that returns an object that appears in the list most often.
For example, I have different colors in my list: Color.black, Color.white, Color.blue .... And I have to determine that the color Color.randcolor occurs most often.
But how to do that...