mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
21 lines
460 B
Java
21 lines
460 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.util.*;
|
|
|
|
// IDEA-244356
|
|
class Usage {
|
|
|
|
private static void exampleMethod(List<? extends Integer> listOfIntegers) {
|
|
int firstElement = listOfIntegers.get(0);
|
|
for (int element : listOfIntegers) {
|
|
if (element == firstElement) {}
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
List<Integer> list = new ArrayList<>();
|
|
list.add(0);
|
|
list.add(1);
|
|
exampleMethod(list);
|
|
}
|
|
} |