// "Replace 'stream().toArray()' with 'toArray()'" "true" import java.util.*; class Test { public void testToArray(List data) { Object[] array = data.stream().toArray(String[]::new); } }