mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
16 lines
309 B
Java
16 lines
309 B
Java
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class C {
|
|
List<String> list = new ArrayList<>();
|
|
|
|
void foo(int index) {
|
|
System.out.println(list.get(index));
|
|
|
|
<selection>System.out.println(list.get(index + 1))</selection>;
|
|
}
|
|
void bar() {
|
|
System.out.println(list.get(1-2));
|
|
}
|
|
}
|