src/main/java/org/jsoup/nodes/Element.java
/**
     * Gets the next sibling element of this element. E.g., if a {@code div} contains two {@code p}s, 
     * the {@code nextElementSibling} of the first {@code p} is the second {@code p}.
     * <p/>
     * This is similar to {@link #nextSibling()}, but specifically finds only Elements
     * @return the next element, or null if there is no next element
     * @see #previousElementSibling()
     */
Gets the next sibling element of this element. E.g., if a  div contains two  ps,
the  nextElementSibling of the first  p is the second  p.

This is similar to  #nextSibling(), but specifically finds only Elements
@return the next element, or null if there is no next element
@see #previousElementSibling()
Gets the next sibling element of this element . E . g . if a div contains two ps the nextElementSibling of the first p is the second p . This is similar to #nextSibling () but specifically finds only Elements @return the next element or null if there is no next element @see #previousElementSibling ()
public Element nextElementSibling() {
        List<Element> siblings = parent().children();
        Integer index = indexInList(this, siblings);
        Validate.notNull(index);
        if (siblings.size() > index+1)
            return siblings.get(index+1);
        else
            return null;
    }
public Element nextElementSibling ( ) { List < Element > siblings = parent ( ) . children ( ) ; Integer index = indexInList ( this , siblings ) ; Validate . notNull ( index ) ; if ( siblings . size ( ) > index + 1 ) return siblings . get ( index + 1 ) ; else return null ; }
Gets the next sibling element of this element.
Gets the next sibling element of this element .