mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
17 lines
310 B
Java
17 lines
310 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
|
|
public abstract class Collect implements Collection<String>{
|
|
class Person {
|
|
String getName() {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
void collectNames(List<Person> persons){
|
|
for (Person person : pers<caret>ons) {
|
|
add(person.getName());
|
|
}
|
|
}
|
|
}
|