About Question enthuware.ocpjp.v7.2.1280 :
Posted: Wed Aug 27, 2014 11:24 am
This cant convince me i think the ceiling and higher is the same ,,.. or what
aaa --> higher b as question
so isnt
aaa --> ceiling b too but in the question its not
why
bb --> higher c as question
so isnt
bb -->ceiling is c too ?
E ceiling(E e)
Returns the least element in this set greater than or equal to the given element, or null if there is no such element.
E floor(E e)
Returns the greatest element in this set less than or equal to the given element, or null if there is no such element.
E higher(E e)
Returns the least element in this set strictly greater than the given element, or null if there is no such element.
E lower(E e)
Returns the greatest element in this set strictly less than the given element, or null if there is no such element.
Note that methods of NavigableMap (such as ceilingEntry(), ceilingKey(), floorEntry(), floorKey() etc.) also work exactly the same way.
aaa --> higher b as question
so isnt
aaa --> ceiling b too but in the question its not
why
bb --> higher c as question
so isnt
bb -->ceiling is c too ?
E ceiling(E e)
Returns the least element in this set greater than or equal to the given element, or null if there is no such element.
E floor(E e)
Returns the greatest element in this set less than or equal to the given element, or null if there is no such element.
E higher(E e)
Returns the least element in this set strictly greater than the given element, or null if there is no such element.
E lower(E e)
Returns the greatest element in this set strictly less than the given element, or null if there is no such element.
Note that methods of NavigableMap (such as ceilingEntry(), ceilingKey(), floorEntry(), floorKey() etc.) also work exactly the same way.