题目内容
(3-3)importjava.io.*;publicclassResult_1{publicstaticvoidmain(String[]arge)throwsIOException{intch[]=newint[30],i=0;Stringstr="富强、民主、文明、和谐";byte[]bt=str.getBytes();ByteArrayInputStreambais=newByteArrayInputStream(bt,0,14);bais.read(bt);System.out.println(newString(bt,0,bt.length));}}程序运行结果:
查看答案
搜索结果不匹配?点我反馈