The NavigableSet.lower(E)
Javadoc says it returns the greatest element in this set strictly less than the given element, or null
if there is no such element. Why is 1 the output here? Shouldn't it be 4?
NavigableSet original = new TreeSet();
original.add("1");
original.add("2");
original.add("3");
original.add("4");
original.add("10");
Object lower = original.lower("10");
System.out.println(lower);