aa=theT2.guan(); //操纵数据库
System.out.println ("string z is:"+aa);
if(aa.compareTo("null")!=0 )
//若是查询数据库,返回查询后的结果
{ //若不是查询数据库,不向客户端输出信息
out.writeUTF(aa);
out.flush(); }
}//while
incoming.close(); //线程关闭
}//try
catch(IOException e)
{System.out.println(e);}
}//end run
}
//----------------------------------------
class S
{
public static void main(String[] args)
{
int i=1;
try
{
&nbs