当前位置: 技术问答>java相关
高手们帮我看看这段程序吧!怎么我的输出流传递不进去?
来源: 互联网 发布时间:2015-05-06
本文导语: 我定义传入参数为输出流PrintString DOS 但执行的时候系统说:class PrintStream not find in class sendMsg…… public class sendMsg extends Thread { public sendMsg(PrintStream DOS) { PrintStream sDOS = new PrintStream(); sDOS ...
我定义传入参数为输出流PrintString DOS
但执行的时候系统说:class PrintStream not find in class sendMsg……
public class sendMsg extends Thread {
public sendMsg(PrintStream DOS) {
PrintStream sDOS = new PrintStream();
sDOS = DOS;
}
public void send() {
int squId=1;
while(squId
但执行的时候系统说:class PrintStream not find in class sendMsg……
public class sendMsg extends Thread {
public sendMsg(PrintStream DOS) {
PrintStream sDOS = new PrintStream();
sDOS = DOS;
}
public void send() {
int squId=1;
while(squId