mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-22 20:49:52 +07:00
10 lines
258 B
Java
10 lines
258 B
Java
// "Replace 'stream().toArray()' with 'toArray()'" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public void testToArray(List<String[]> data) {
|
|
/*generate array*/
|
|
String[][] array = data.subList(0, /*max number*/ 10).toArray(new String[0][]);
|
|
}
|
|
} |