1. 程式人生 > >InputStream為何不能建立子類物件

InputStream為何不能建立子類物件

InputStream reader=new ByteArrayInputStream(new byte[3]);

提示說Type mismatch: cannot convert from ByteArrayInputStream to InputStream

其它子類也都試過了