blob: 434c2c5a1bec12772597247718b6e407af6906b4 [file] [log] [blame]
// "Replace with collect" "true"
import java.util.*;
public class Collect {
class Person {
String getName() {
return "";
}
}
void collectNames(List<Person> persons){
List<String> names = new ArrayList<>();
for (Person person : pers<caret>ons) {
names.add("name: " + person.getName());
}
}
}