mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
19 lines
422 B
Java
19 lines
422 B
Java
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
|
|
public class ExtractVariableSample {
|
|
|
|
public static void main(String[] args, String s) {
|
|
Collection<String> strings = new ArrayList<>();
|
|
new Object() {
|
|
public void foo(String s) {
|
|
System.out.println( s.hashCode());
|
|
}
|
|
};
|
|
|
|
System.out.println(<selection>s.hashCode()</selection>);
|
|
}
|
|
|
|
|
|
} |