首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

ArrayList里方法的有关问题

2011-12-28 
ArrayList里方法的问题API中ArrayList有这个方法protectedvoidremoveRange(intfromIndex,inttoIndex)请问

ArrayList里方法的问题
API中ArrayList有这个方法    
protected   void   removeRange(int   fromIndex,int   toIndex)
请问高手们   我怎么可以用这个方法?eclipse中调不出来.谢谢..


[解决办法]
public class MyArrayList extends ArrayList {

public void f() {
// 在这里用removeRange();
}


}

热点排行