mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
21 lines
486 B
Java
21 lines
486 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>
|
|
s = "";
|
|
System.out.println(s.length());
|
|
}
|
|
|
|
void bar(List<String> a) {
|
|
String s = a.get(1);
|
|
if (s == null) return;
|
|
System.out.println(s.charAt(1));
|
|
s = "";
|
|
System.out.println(s.length());
|
|
}
|
|
} |