mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 14:17:48 +07:00
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
19 lines
454 B
Java
19 lines
454 B
Java
import java.util.List;
|
|
|
|
class DeclaredOutputVariable {
|
|
void foo(List<String> a) {
|
|
<selection>
|
|
String s = a.get(1);
|
|
if (s == null) return;
|
|
System.out.println(s.charAt(1));
|
|
</selection>
|
|
System.out.println(s.length());
|
|
}
|
|
|
|
void bar(List<String> a) {
|
|
String s = a.get(2);
|
|
if (s == null) return;
|
|
System.out.println(s.charAt(2));
|
|
System.out.println(s.length());
|
|
}
|
|
} |