错误如下:
error: cannot read: PipeStreamTest.java
1 errorE:\java\Lesson7>javac PipedStreamTest.java
PipedStreamTest.java:9: cannot find symbol
symbol : method getOutputStream()
location: class java.lang.Thread
PipedOutputStream out=t1.getOutputStream();
^
PipedStreamTest.java:10: cannot find symbol
symbol : method getInputStream()
location: class java.lang.Thread
PipedInputStream in=t2.getInputStream();
error: cannot read: PipeStreamTest.java
1 errorE:\java\Lesson7>javac PipedStreamTest.java
PipedStreamTest.java:9: cannot find symbol
symbol : method getOutputStream()
location: class java.lang.Thread
PipedOutputStream out=t1.getOutputStream();
^
PipedStreamTest.java:10: cannot find symbol
symbol : method getInputStream()
location: class java.lang.Thread
PipedInputStream in=t2.getInputStream();
解决方案 »
- Hibernate annotation ManyToMany的中间表加入自己的字段存储报错
- java接收c语言的结构体
- 遇到报错:Class HelloWorldServlet is not a Servlet!疯了
- 谁能远程帮我弄一下iis。。。 我一直弄不好。。。。
- 为什么没有进equal里面
- Struts
- 谁有jasperreport和ireport的下载,网上的链接都不怎么行了啊!
- 如何用strus处理查询到的记录集的问题?
- 配置STRUTS,为什么提示我找不到资源文件,我觉得已经没错了,还有什么其它原因,帮我看看,谢谢了,在线!!
- 请问如何解决多线程下的自增字段的问题
- 请教怎么学好J2EE?? 有没有什么好的电子书籍和例子啊~!
- 急啊,谁能给个jbuilder 2005的下载地址啊?
Thread t2=new Receiver();
改为Sender t1=new Sender();
Receiver t2=new Receiver();