Topic: 为什么编译通不过? |
Print this page |
1.为什么编译通不过? | Copy to clipboard |
Posted by: Butterfly_125 Posted on: 2005-07-21 02:28 import java.io.*; 编译报的错: D:\PipeStreamTest.java:10: 找不到符号 符号: 方法 getOutputStream() 位置: 类 java.lang.Thread PipedOutputStream out = e1.getOutputStream(); ^ D:\PipeStreamTest.java:11: 找不到符号 符号: 方法 getInputStream() 位置: 类 java.lang.Thread PipedInputStream in = e2.getInputStream(); ^ 2 错误 getOutputStream()和getInputStream()明明在Sender和Receiver中自己定义了啊! 为什么还这报错?高手们,帮帮忙吧! |
2.Re:为什么编译通不过? [Re: Butterfly_125] | Copy to clipboard |
Posted by: ranchgirl Posted on: 2005-07-21 06:01 I am going to provide you two ways to make it work, one is better, the other is not very good in your case, but very useful in many other cases. The second way is in comments. However, the other way will also help you to understand some important Java/OO concepts. Do read them, try hard to make yourself understood.
Read my comments in the code carefully, and you will actually learn a lot of Java and concepts of OO programming after you understand them. Happy learning and good luck! |
3.Re:为什么编译通不过? [Re: Butterfly_125] | Copy to clipboard |
Posted by: Butterfly_125 Posted on: 2005-07-21 14:21 哈哈,可能是我英文不太好的原因吧,我把comments and corrected codes read for N times!But,I am really understand your ideas at last. Your answers very useful and particular every times!! What a good man you are! Thank you my really friends! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |