1
agzou 2021-04-02 11:43:47 +08:00
public class DemoApp {
public static void main(String[] args) { List<String> data= new ArrayList<>(); byte[][] bytes = data.stream().map(String::getBytes).toArray(byte[][]::new); test("",null,bytes); } private static void test(String var1 ,byte[] var2, byte[]... var3) { } } |
2
cheng6563 2021-04-02 16:57:16 +08:00
byte[]... 等同于 byte[][]
|