Consider a TreeSet object has been initialized and added the
following strings (in that order): "Einstein", "Newton", "Galilei",
"Hawking", "Turing", "Liao". What are the strings returned by the
following methods?
floor("Liao")
last()
first()
lower("Galilei")
ceiling("L")
higher("Galilei")
higher("G")
floor("L")
ceiling("Liao")
1. for floor("Liao"): Liao string will be returned.
2. for last(): Turing string will be returned.
3. for first(): Einstein string will be returned.
4. for lower("Galilei") : Einstein string will be returned.
5. for ceiling("L") : Liao string will be returned.
6. for higher("Galilei") : Hawking string will be returned.
7. for higher("G") : Galilei will be returned.
8. for floor("L") : Hawking will be returned.
9. for ceiling("Liao") : Liao will be returned.
I HOPE THIS WILL HELP
Get Answers For Free
Most questions answered within 1 hours.