Skip to content

Commit 4618840

Browse files
committed
List(The madman implementation)
1 parent d94ec28 commit 4618840

File tree

1 file changed

+22
-0
lines changed
  • group18/935542673/Coding/src/com/ikook/basic_data_structure

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.ikook.basic_data_structure;
2+
3+
/**
4+
* @author ikook QQ号码: 935542673
5+
*/
6+
public interface MyList {
7+
8+
public void add(Object o);
9+
public void add(int index, Object o);
10+
11+
public int size();
12+
13+
public boolean isEmpty();
14+
15+
public Object get(int index);
16+
17+
public Object remove(int index);
18+
public boolean remove(Object obj);
19+
20+
public Object set(int index, Object obj);
21+
22+
}

0 commit comments

Comments
 (0)