mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
21 lines
427 B
Java
21 lines
427 B
Java
// "Replace with collect" "false"
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Main2 {
|
|
public static void main(String[] args) {
|
|
MyList list = new MyList();
|
|
List<Integer> integerList = new ArrayList<>();
|
|
for (Object element : li<caret>st) {
|
|
if (element instanceof Integer) {
|
|
integerList.add((Integer) element);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static class MyList extends ArrayList {
|
|
|
|
}
|
|
}
|