parent
f8d7bfc727
commit
d55eeceb4f
|
@ -1,3 +0,0 @@
|
|||
public interface MyInterface {
|
||||
public void test();
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class Tsss {
|
||||
List<MyInterface> list = Arrays.asList();
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Tsss().add(new MyInterface() {
|
||||
@Override
|
||||
public void test() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void add(MyInterface obj) {
|
||||
list.add(obj);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue