blob: e331f2b10e232093b9133979f773f7a4a7f8c81d [file] [log] [blame]
import java.util.ArrayList;
import java.util.Collection;
public class ExtractVariableSample {
interface I {
void foo(String s);
}
public static void main(String[] args) {
Collection<String> strings = new ArrayList<>();
I i = (s) -> { System.out.println(<selection>s.hashCode()</selection>); };
for (String s : strings) {
System.out.println(s.hashCode());
}
}
}