mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
14 lines
262 B
Java
14 lines
262 B
Java
// "Replace with addAll" "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);
|
|
}
|
|
}
|
|
}
|