创建一个Interface crudRobot管理机器人的增删查改操作,机器人存放ArrayList或者LinkedList里。Interface crudRobot定义如下:
Interface crudRobot{
void creat(List<A> robot);
void display(List<A> robot);
void delete(List<A> robot, <T> t); //删除元素t
void update(List<A> robot, <T> t); //更改元素t
}
这个说不是设置成interface 那做一个类的话,我是继承了原有的Robot类,但是在IJ里一直报错。这个Listrobot是什么意思呀?T是指泛型?