treeset java
TreeSet类ceiling()方法 (TreeSet Class ceiling() method)
ceiling() method is available in java.util package.
ceiling()方法在java.util包中可用。
ceiling() method is used to return the lowest element equal to or larger than the given element (ele) when it exists otherwise it returns null.
ceiling()方法用于返回等于或大于给定元素(ele)的最低元素(如果存在),否则返回null。
ceiling() method is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error.
ceiling()方法是一种非静态方法,只能通过类对象访问,如果尝试使用类名称访问该方法,则会收到错误消息。
ceiling() method may throw an exception at the time of re