MR-LI_20200907-李伟江

问题

    public void remove( Object o ) {
        int index = this.indexOf( o );
        if( index != -1 ) {
            this.remove( index );
        }else {
            throw new RuntimeException("要删除的元素不存在");
        }
    }

这里当时觉得应该添加异常抛出语句。

public boolean removeAll(Collection<?> c)

这里没理解添加的顺序,不知道删除的位置从哪里开始,到哪里结束。

吐槽

西安的天气是真的刺激,越来越热的。

标签


© 2021 成都云创动力科技有限公司 蜀ICP备20006351号-1