ArrayList里的removeRange()方法

    xiaoxiao2021-03-25  117

    import java.util.*; class Test extends ArrayList<String> { public static void main(String[] args) { Test t=new Test(); t.add("赵"); t.add("钱"); t.add("李"); t.removeRange(0,2); System.out.println(t); } }
    转载请注明原文地址: https://ju.6miu.com/read-20952.html

    最新回复(0)