import java.io.*;
import java.net.*;
public class Client{
public static void main(String [] args)throws IOException{
Socket socket=null; PrintStream out=null;
DataInputStream in=null;
try{
socket=new Socket("192.168.1.2",1800);
out=new PrintStream(socket.getOutputStream());
in=new DataInputStream(socket.getInputStream());
}
catch(UnknownHostException e){
System.err.println("Couldn't get I/O for the connetion!");
System.exit(1);
}
catch(IOException e){
System.err.println("Don't know about host!");
System.exit(1);
} DataInputStream stdIn=new DataInputStream(System.in);
String fromserver;
String fromuser; 

while((fromserver=in.readLine())!=null){
System.out.println("Server:"+fromserver); if(fromserver.equals("Bye"));
break;

fromuser=stdIn.readLine();//这里出错了! if(fromuser!=null){
System.out.println("Client:"+fromuser);
out.println(fromuser);
}
}
//关闭
out.close();
in.close();
stdIn.close();
socket.close();
}
}出错代码:fromuser=stdIn.readLine();
unreachable statement 该如何处理?谢谢!