📄 example7_4.java
字号:
/*
* Example7_4.java
*
* Created on 2006年9月15日, 下午5:35
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package example7_4;
import java.io.*;
/**
*
* @author Administrator
*/
public class Example7_4 {
/** Creates a new instance of Example7_4 */
public Example7_4() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic hereimport java.io.*;
Sender s = new Sender();
Receiver r = new Receiver();
PipedOutputStream out = s.getOut();
PipedInputStream in = r.getIn();
try
{
in.connect(out); //将当前管道输入流连接到一个发送者
s.start(); r.start();
}
catch(Exception e){e.printStackTrace();}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -