第45天 2020/8/19
第一题读取之后的输出问题
第二题
InputStream bin = new ByteArrayInputStream(b);
InputStream类可以接受byte数据,然后用
Character.toUpperCase((char) len)转换大小写;
throws IOException是Java中的throws语句。
throws是方法可能抛出异常的声明。(用在声明方法时,表示该方法可能要抛出异常)
语法:[(修饰符)](返回值类型)(方法名)([参数列表])[throws(异常类)]{......}
public void doA(int a) throws
Exception1,Exception3{......}

浙公网安备 33010602011771号