小编use*_*825的帖子

byte ['?']在Java中意味着什么?

我有个问题.我不知道byte['?']意味着什么; 它适用于所有类型的数组,但我很好奇它实际上做了什么.

private void copy(InputStream in, File file) {
    try {
        OutputStream out = new FileOutputStream(file);
        byte[] buf = new byte['?'];
        int len;
        while ((len = in.read(buf)) > 0) {
            out.write(buf, 0, len);
        }
        out.close();
        in.close();
    } catch (Exception localException) {
}
Run Code Online (Sandbox Code Playgroud)

java arrays

1
推荐指数
1
解决办法
118
查看次数

标签 统计

arrays ×1

java ×1