mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 02:39:37 +07:00
13 lines
313 B
Java
13 lines
313 B
Java
// "Replace with toArray" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
String[] test(int count) {
|
|
List<String> result = new ArrayList<>();
|
|
for(int <caret>i=0; i < count; i++) {
|
|
Collections.addAll(result, "one", "two", "three");
|
|
}
|
|
return result.toArray(new String[result.size()]);
|
|
}
|
|
}
|