mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
17 lines
297 B
Java
17 lines
297 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
|
|
public class Collect {
|
|
class Person {
|
|
String getName() {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
void collectNames(List<Person> persons, Set<String> names){
|
|
for (Person person : pers<caret>ons) {
|
|
names.add(person.getName());
|
|
}
|
|
}
|
|
}
|