mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
14 lines
263 B
Java
14 lines
263 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
|
|
public class Collect {
|
|
class Person {}
|
|
|
|
void collectNames(List<Person> persons){
|
|
List<Person> names = new ArrayList<>();
|
|
for (Person person : pers<caret>ons) {
|
|
names.add(person);
|
|
}
|
|
}
|
|
}
|