
1 agzou Apr 2, 2021 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 Apr 2, 2021 byte[]... 等同于 byte[][] |