将svrip.setText(ddd);改为svrip.setText(new String(ddd));
解决方案 »
- 初学DOM4J的问题
- 菜鳥問問題...大蝦不准拍我磚哈...謝謝!(小的如字母符號不算哈..)
- 怎樣把class打包成一個jar文件。就像jdk一些包一樣。謝謝~!
- 请告知运行SWING的命令 在线...
- 将int型数据a转换为String的话,使用String.valueOf(a)和(new Integer(a)).toString()这2中方法有什么区别?
- 请问怎么解决UnsatisfiedLinkError???
- 帮帮忙!一个小问题!送点分!有关Applet的jdbTable问题!!!
- 送分,我的jb6的new-> enterprise怎么变黑了?
- 哎,哪位可以教教我?烦死啦。。。
- 请问怎样使滚动条随JTextArea内容增加向下滚动????????
- 美女和Computer,两者不可兼得,你选哪个?
- 求助!如何将HTML表单中的内容转存为规定格式的PDF
FileInputStream fisi=new FileInputStream("cip.txt");
byte ddd[]=new byte[20];
StringBuffer sbcont = new StringBuffer();
while( fisi.read(ddd)!=-1){
sbcont .append(ddd);
//此处需要将ddd清空
}
svrip.setText(sbcont.toString());
}
catch(IOException e){System.out.print("出错!");}
finally{
fisi.close();
}