日期:2014-05-20  浏览次数:20728 次

提个关于ByteArrayInputStream的问题
为什么我在Eclipse里这两行代码始终通不过编译??

JDK的版本是1.5

Byte[] buff = new Byte[]{1,15,67,-1,-9,9};
ByteArrayInputStream in = new ByteArrayInputStream(buff,1,4);

总是在第二行的处报错,The constructor ByteArrayInputStream(Byte[]) is undefined 

晕了~~

------解决方案--------------------
小写。
Byte[]改byte[]