public?class?ojp_9_1?{
?public?static?void?main(String[]?args)?throws?Exception?{?
?String?path="f:"+File.separator+"OJP.txt";
?File?f=new?File(path);
?OutputStream?o=null;?
?o=new?FileOutputStream(f);?
?String?write="Hello?World!";?
?byte?b[]=write.getBytes();?
?o.write(b);?
?o.close();//關閉輸出流
?System.out.println(b);上面這個代碼輸出的結果是:[B@15db9742而我的問題就是如何把結果改為輸出文本內容的Hello World???
如何將哈希碼轉換成明文?
慕UI8868584
2018-01-12 10:03:17